Skip to content

Change a page

Try it

Renames, moves, hides or re-addresses a draft page, hides it from search engines, or sets its search title and description. Only the fields you send change.

PATCH/api/v1/sites/{site_id}/pages/{page_id}

Authentication

An API key as Authorization: Bearer or x-api-key. It needs the sites:write scope — edit draft pages and sections.

sites:writeChanges the draft or a recordIdempotency-Key optionalMCP tool: update_page

Parameters

Named placeholders go in the path; the rest in a JSON body.

site_idstringPath · required
The site's id.1 to 100 characters
page_idstringPath · required
The page's id.1 to 100 characters
titlestringBody · optional
1 to 80 characters
slugstringBody · optional
The web address after the slash, e.g. about-us.At most 60 characters
parent_idstring | nullBody · optional
Put the page under another (one level deep) — its menu shows it as a dropdown.At most 100 characters
positionintegerBody · optional
Menu order, 0-based (the home page stays first).0 to 200
show_in_navbooleanBody · optional
Listed in the site's menu.
hiddenbooleanBody · optional
Hidden pages are never published.
hide_from_searchbooleanBody · optional
Hide from search engines: the live page stays public but says noindex and is left out of sitemap.xml and the site's own search (a thank-you or ad landing page). Not the home page. Live with the next publish.
seo_titlestring | nullBody · optional
At most 120 characters
seo_descriptionstring | nullBody · optional
At most 300 characters

Response

200 with JSON on success (schema on the right). Errors use the standard envelope; a retry with the same Idempotency-Key gets the first answer back (how retries work).

curl
curl -X PATCH 'https://websites.workflowcorp.com/api/v1/sites/SITE_ID/pages/PAGE_ID' \
  -H "Authorization: Bearer $WEBSITEBUDDY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"title":"Our story","show_in_nav":true}'
Example arguments
{
  "site_id": "SITE_ID",
  "page_id": "PAGE_ID",
  "title": "Our story",
  "show_in_nav": true
}
Response schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "slug": {
      "type": "string",
      "description": "\"\" for the home page."
    },
    "path": {
      "type": "string",
      "description": "Where it lives on the site, e.g. /about."
    },
    "is_home": {
      "type": "boolean"
    },
    "parent_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "position": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "show_in_nav": {
      "type": "boolean"
    },
    "hidden": {
      "type": "boolean",
      "description": "Hidden pages stay in the draft and are never published."
    },
    "hide_from_search": {
      "type": "boolean",
      "description": "Hidden from search engines: noindex, left out of sitemap.xml and site search (the draft's setting; live with the next publish)."
    },
    "seo_title": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "seo_description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "section_count": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "is_sample": {
      "type": "boolean"
    }
  },
  "required": [
    "id",
    "title",
    "slug",
    "path",
    "is_home",
    "parent_id",
    "position",
    "show_in_nav",
    "hidden",
    "hide_from_search",
    "seo_title",
    "seo_description",
    "section_count",
    "is_sample"
  ],
  "additionalProperties": false
}