Skip to content

Document playground.hidden option on customize-api-reference-layout page - #7194

Open
fern-api[bot] wants to merge 1 commit into
mainfrom
2026-09-30-fern-ai-1fb7a4-37e3e6a3
Open

fern-api[bot] wants to merge 1 commit into
mainfrom
2026-09-30-fern-ai-1fb7a4-37e3e6a3

Conversation

@fern-api

@fern-api fern-api Bot commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

On the "Customize API Reference layout" page, updated the "Setting API Explorer options" section to mention hidden as a fourth playground sub-property (alongside oauth, environments, and send-optional-defaults), updated the prose description accordingly, added a standalone YAML example showing playground: hidden: true on an - api entry, and added a new <ParamField path="playground.hidden" toc={true} type="boolean"> entry in the configuration options reference after playground.send-optional-defaults.

### Setting API Explorer options

The `playground` property sets three API Explorer options: `oauth` enables the [OAuth client-credentials flow](/learn/api-definitions/openapi/authentication), `environments` restricts which server environments are available (an empty list disables the Explorer), and `send-optional-defaults` [pre-fills and sends the declared defaults](/learn/docs/api-references/api-explorer#autopopulate-with-examples) of optional parameters. Set it on the `- api` entry to apply a default across all endpoints, then override it on a section or endpoint in `layout`:
The `playground` property sets four API Explorer options: `oauth` enables the [OAuth client-credentials flow](/learn/api-definitions/openapi/authentication), `environments` restricts which server environments are available (an empty list disables the Explorer), `send-optional-defaults` [pre-fills and sends the declared defaults](/learn/docs/api-references/api-explorer#autopopulate-with-examples) of optional parameters, and `hidden: true` hides the Try it button for every endpoint under the API reference (the Explorer is not shown at all). Set it on the `- api` entry to apply a default across all endpoints, then override it on a section or endpoint in `layout`:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [vale] <FernStyles.Reject> reported by reviewdog 🐶
Use 'API Reference' instead of 'API reference'.

### Setting API Explorer options

The `playground` property sets three API Explorer options: `oauth` enables the [OAuth client-credentials flow](/learn/api-definitions/openapi/authentication), `environments` restricts which server environments are available (an empty list disables the Explorer), and `send-optional-defaults` [pre-fills and sends the declared defaults](/learn/docs/api-references/api-explorer#autopopulate-with-examples) of optional parameters. Set it on the `- api` entry to apply a default across all endpoints, then override it on a section or endpoint in `layout`:
The `playground` property sets four API Explorer options: `oauth` enables the [OAuth client-credentials flow](/learn/api-definitions/openapi/authentication), `environments` restricts which server environments are available (an empty list disables the Explorer), `send-optional-defaults` [pre-fills and sends the declared defaults](/learn/docs/api-references/api-explorer#autopopulate-with-examples) of optional parameters, and `hidden: true` hides the Try it button for every endpoint under the API reference (the Explorer is not shown at all). Set it on the `- api` entry to apply a default across all endpoints, then override it on a section or endpoint in `layout`:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [vale] <Microsoft.Contractions> reported by reviewdog 🐶
Use 'isn't' instead of 'is not'.

Suggested change
The `playground` property sets four API Explorer options: `oauth` enables the [OAuth client-credentials flow](/learn/api-definitions/openapi/authentication), `environments` restricts which server environments are available (an empty list disables the Explorer), `send-optional-defaults` [pre-fills and sends the declared defaults](/learn/docs/api-references/api-explorer#autopopulate-with-examples) of optional parameters, and `hidden: true` hides the Try it button for every endpoint under the API reference (the Explorer is not shown at all). Set it on the `- api` entry to apply a default across all endpoints, then override it on a section or endpoint in `layout`:
The `playground` property sets four API Explorer options: `oauth` enables the [OAuth client-credentials flow](/learn/api-definitions/openapi/authentication), `environments` restricts which server environments are available (an empty list disables the Explorer), `send-optional-defaults` [pre-fills and sends the declared defaults](/learn/docs/api-references/api-explorer#autopopulate-with-examples) of optional parameters, and `hidden: true` hides the Try it button for every endpoint under the API reference (the Explorer isn't shown at all). Set it on the `- api` entry to apply a default across all endpoints, then override it on a section or endpoint in `layout`:

</ParamField>

<ParamField path="playground.hidden" toc={true} type="boolean">
When `true`, hides the Try it button for every endpoint in this API section. The API Explorer is not shown. Can also be set on individual sections or endpoints in `layout` to override.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [vale] <Microsoft.Contractions> reported by reviewdog 🐶
Use 'isn't' instead of 'is not'.

Suggested change
When `true`, hides the Try it button for every endpoint in this API section. The API Explorer is not shown. Can also be set on individual sections or endpoints in `layout` to override.
When `true`, hides the Try it button for every endpoint in this API section. The API Explorer isn't shown. Can also be set on individual sections or endpoints in `layout` to override.

@github-actions

Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants