Add a page version

Request

Creates a new version of a page.

Security
Bearer
Path
pageIdstringrequired

The page identifier.

Example:8f0b81bc-7388-46be-b109-6e73d1114470
Query
environmentIdstring

The identifier of the environment.

Example:environmentId=main
Body

Input data containing properties of the page for which to create a new version.

languagestring or null

The language of the new page version. Example value: en-US

Example:"en-US"
sitestring or null

The site name. Example value: my-site

Example:"my-site"
baseVersioninteger or null, (int32)

The base version number to create the new version from. Example value: 1

Example:1
versionNamestring or null

The name of the new version. Example value: Black Friday content update

Example:"Black Friday content update"
curl -i -X POST \
  'https://xmapps-api.sitecorecloud.io/api/v1/pages/8f0b81bc-7388-46be-b109-6e73d1114470/version?environmentId=main' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "language": "en-US",
    "site": "my-site",
    "baseVersion": 1,
    "versionName": "Black Friday content update"
  }'

Responses

Success

Bodyapplication/json
integer, (int32)
Response
0