WordPress · Schema
PageInput
Input schema for creating or updating a page
CMSContent ManagementOpen SourceWordPress
Properties
| Name | Type | Description |
|---|---|---|
| title | string | The title for the page |
| content | string | The content for the page |
| status | string | |
| parent | integer | The ID for the parent page |
| menu_order | integer | The order of the page |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/wordpress/refs/heads/main/json-schema/wordpress-page-input-schema.json",
"title": "PageInput",
"description": "Input schema for creating or updating a page",
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "The title for the page",
"example": "New Page"
},
"content": {
"type": "string",
"description": "The content for the page",
"example": "Page content goes here."
},
"status": {
"type": "string",
"enum": [
"publish",
"draft",
"private"
],
"example": "publish"
},
"parent": {
"type": "integer",
"description": "The ID for the parent page",
"example": 0
},
"menu_order": {
"type": "integer",
"description": "The order of the page",
"example": 0
}
}
}