API reference
Create a demo page
Create a placeholder documentation page.
Create a demo page
Create a placeholder documentation page.
POSTCreate a demo page
https://api.example.com/v1/demo-pagesAuth: bearerAuth: bearer (token)Open playground
Generated from
examples/openapi.json. Use the playground for interactive exploration when your API allows safe requests.
Authentication
bearerAuth: bearer (token)
Request body
Required| Property | Type | Description |
|---|---|---|
titleRequired | string | |
bodyRequired | string | |
tagsOptional | string[] |
application/json request
{
"title": "Install the CLI",
"body": "Run npm install -g example-cli."
}Responses
201HTTP responseThe demo page was created.
400HTTP responseThe request body was invalid.
Code samples
curl -X POST "https://api.example.com/v1/demo-pages" \
-H "Authorization: Bearer $API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"title":"Install the CLI","body":"Run npm install -g example-cli."}'Schemas
| Property | Type | Description |
|---|---|---|
idRequired | string | |
slugRequired | string | |
titleRequired | string | |
statusRequired | draft | published |
| Property | Type | Description |
|---|---|---|
titleRequired | string | |
bodyRequired | string | |
tagsOptional | string[] |
Was this page helpful?