Schema
<Schema> and <SchemaSnippet> render a data structure defined in OpenAPI.
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.
Displays a type by its name in components.schemas: <Schema> (alias <SchemaFields>) shows a field table, and <SchemaSnippet> shows a JSON example.
<Schema type="Deployment" />
<SchemaSnippet type="Deployment" title="Deployment example" />The name, start and end of the key, when triggered with an API key (CLI / CI)
First 10 characters of the key
Last 10 characters of the key
Present after success. Production deployments have the site's URL; previews use a <site>--<last 8 characters of the id> subdomain
{
"id": "dpl_01jd8x2k7q",
"siteId": "site_2m4k8p",
"kind": "production",
"status": "queued",
"source": "git",
"branch": "main",
"commitSha": "9fceb02d0ae598e95dc970b74767f19372d61af8",
"message": "docs: update quickstart",
"createdBy": {
"id": "string",
"name": "string"
},
"apiKey": {
"name": "GitHub Actions",
"prefix": "biti_a1B2c",
"suffix": "Kd82mQx0Zt"
},
"error": "string",
"pageCount": 94,
"sizeBytes": 5832110,
"durationMs": 6120,
"url": "https://acme-payments--8x2k7q-sites.butterix.com",
"isCurrent": true,
"createdAt": 1,
"finishedAt": 1
}In the page's .md version, <Schema> is a field table and <SchemaSnippet> a JSON code block.