HOC SiteDokümantasyon

restore_version

Pass revisionId to write a stored revision back through the normal save path, which appends a new revision and leaves older rows in place. Omit revisionId to undo the most recent change (optionally for one contentLocale). surface is required; documentId is required for page and page-component and omitted for chrome-header and chrome-footer. get_pages, get_chrome, and get_components return the revision ids to use here (versions=N lists them).

restore_version · Grup: design

Girdiler

websiteId

zorunlu

surface

zorunlu

documentId

isteğe bağlı

revisionId

isteğe bağlı — Revision to restore. Omit to undo the last change.

contentLocale

isteğe bağlı

Şema

{
  "name": "restore_version",
  "group": "design",
  "inputFields": [
    {
      "name": "websiteId",
      "required": true
    },
    {
      "name": "surface",
      "required": true
    },
    {
      "name": "documentId",
      "required": false
    },
    {
      "name": "revisionId",
      "required": false,
      "description": "Revision to restore. Omit to undo the last change."
    },
    {
      "name": "contentLocale",
      "required": false
    }
  ]
}

Eşlendiği uçlar

  • POST /api/v1/{locale}/{websiteId}/design/revisions → API

İlgili