Pages

Update a page

Replace the entire content of a page. For small changes, prefer patchPage which is more efficient and provides conflict detection.

put/papi/project/{projectId}/pages/{pageSlug}

Request

  • Base URL: https://api.websitepublisher.ai
  • URL: https://api.websitepublisher.ai/papi/project/{projectId}/pages/{pageSlug}
  • Auth: OAuth 2 (authorization code, authorization URL https://api.websitepublisher.ai/dapi/oauth/authorize, token URL https://api.websitepublisher.ai/dapi/oauth/token, scopes: read, write)

Path parameters

projectIdinteger required
pageSlugstring required

Request body

contentstring
base_version_hashstring

Version hash from getPage. Required when updating content to prevent accidental overwrites. Omit only with force: true.

forceboolean

Skip version hash check and overwrite regardless of changes by others.

Example request

{
  "meta": {
    "language": "en"
  },
  "seo": {
    "robots_index": true,
    "robots_follow": true
  },
  "base_version_hash": "2f025efc"
}

Response

Updated

Changes

No recorded changes to this operation across all 1 revision of this API.