diff --git a/api-playground/openapi-setup.mdx b/api-playground/openapi-setup.mdx index 665d9024c..93c9b95a9 100644 --- a/api-playground/openapi-setup.mdx +++ b/api-playground/openapi-setup.mdx @@ -311,6 +311,27 @@ Set the URL of the autogenerated endpoint page using `x-mint: href`. When `x-min } ``` +### Collapse playground sections + +Collapse the request sections of the API playground by default using `x-mint: playground` with `expandSections: false` on any operation. When collapsed, readers expand only the sections they want to interact with, like Authorization, Headers, Query, Path, Body, and Server. Sections are expanded by default when `expandSections` is not set. + +```json {6-10} +{ + "paths": { + "/users": { + "get": { + "summary": "Get users", + "x-mint": { + "playground": { + "expandSections": false + } + } + } + } + } +} +``` + ### Parameter pills Annotate parameters in the API reference and playground with custom pill labels using `x-mint.pre` and `x-mint.post` on any schema. Pills defined with `x-mint.pre` render before the parameter name, and pills defined with `x-mint.post` render after it, alongside Mintlify's built-in pills like `required`, `read-only`, and `write-only`.