Skip to content
  • Auto
  • Light
  • Dark

Guess

Generate configuration suggestions based on an OpenAPI spec
post/v0/projects/{project}/configs/guess

Generate configuration suggestions based on an OpenAPI spec

Path Parameters
projectstring
optional
Body Parameters
specstring

OpenAPI spec

branchstring
optional

Branch name

Returns
contentstring

The file content

curl https://api.stainless.com/v0/projects/$PROJECT/configs/guess \
    -H 'Content-Type: application/json' \
    -H "Authorization: Bearer $STAINLESS_API_KEY" \
    -d '{
      "spec": "spec"
    }'
200 Example
{
  "foo": {
    "content": "content"
  }
}