Source code

Edit page or site metadata

Replaces a page's complete metadata object when page is sent, otherwise the site defaults in website_config. Takes the edit lease when no leaseToken is sent.

patch/websiteSourceCode/metadata

Request

  • Base URL: https://api.cactal.ai/v1
  • URL: https://api.cactal.ai/v1/websiteSourceCode/metadata
  • Auth: HTTP bearer

Request body

websiteIdstring required
pagestring

Page to edit. Omit to edit the site-wide default metadata in website_config.

metadataunknown required
leaseTokenstring

Omit to have Cactal take the edit lease for you; pass a token from websiteSourceCode.lease.acquire to take over from another editor.

Response

The committed edit and the effective metadata.

versioninteger required

Head version after the edit: the previous head plus one, or the unchanged head when changed is false.

changedboolean required

false when the edit was a no-op and no new version was created.

metadataunknown required
metadataChangedboolean required

Whether the metadata differs from its previous value.

Changes

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