Skip to content

ButterIX v1 is out: versions, multiple languages, Ask AI, and a per-site MCP server, all built in. →

Endpoint schema snippet

<EndpointSchemaSnippet> embeds an endpoint's request or response schema from the API reference.

This component pulls data from the API reference, so it updates automatically with the OpenAPI spec. The examples below reference this site's platform API.

A field table for one part of an endpoint:

<EndpointSchemaSnippet endpoint="PUT /sites/{site}/access" selector="request.body" />

Request

This endpoint expects an object.
modeenumRequired
Allowed values:
passwordstringOptional>=6 characters
endpointstringRequired
Same as above.
selectorstring
The part to show: request, request.path, request.query, request.header, request.cookie, request.body, response, response.body, response.errors (or errors). Defaults to request.

In the page's .md version it's a field table, with nested fields written as a.b and list[].c.