WordPress · JSON Structure

Wordpress Page Input Structure

Input schema for creating or updating a page

Type: object Properties: 5
CMSContent ManagementOpen SourceWordPress

PageInput is a JSON Structure definition published by WordPress, describing 5 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

title content status parent menu_order

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/wordpress/refs/heads/main/json-structure/wordpress-page-input-structure.json",
  "name": "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": "int32",
      "description": "The ID for the parent page",
      "example": 0
    },
    "menu_order": {
      "type": "int32",
      "description": "The order of the page",
      "example": 0
    }
  }
}