Create a page

Request

Creates a new page.

Security
Bearer
Query
environmentIdstring

The identifier of the environment.

Example:environmentId=main
Body

Input data containing properties of the page

languagestring, non-emptyrequired

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

Example:"en-US"
pageNamestring, non-emptyrequired

The system name of the new page. Example value: about-us

Example:"about-us"
parentIdstring, non-emptyrequired

The identifier of the parent page. Example value: 9100b830-c85b-459b-9c37-51da74fc9ecc

Example:"9100b830-c85b-459b-9c37-51da74fc9ecc"
templateIdstring, non-emptyrequired

The identifier of the template to be used for the new page. Example value: 2341ef32-42f4-4537-98d8-9ef741008eab

Example:"2341ef32-42f4-4537-98d8-9ef741008eab"
displayNamestring or null

The display name of the new page. Example value: About Us

Example:"About Us"
curl -i -X POST \
  'https://xmapps-api.sitecorecloud.io/api/v1/pages?environmentId=main' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "parentId": "9100b830-c85b-459b-9c37-51da74fc9ecc",
    "pageName": "about-us",
    "templateId": "2341ef32-42f4-4537-98d8-9ef741008eab",
    "language": "en-US",
    "displayName": "About Us"
  }'

Responses

Success

Bodyapplication/json
pageIdstring or null

The page identifier. Example value: 8f0b81bc-7388-46be-b109-6e73d1114470

Example:"8f0b81bc-7388-46be-b109-6e73d1114470"
namestring or null

The system name of the page. Example value: Home

Example:"Home"
displayNamestring or null

The display name of the page. Example value: Site Home

Example:"Site Home"
pathstring or null

The path of the page. Example value: /sitecore/content/collection01/site01/Home/about

Example:"/sitecore/content/collection01/site01/Home/about"
Response
{ "pageId": "8f0b81bc-7388-46be-b109-6e73d1114470", "name": "Home", "displayName": "Site Home", "path": "/sitecore/content/collection01/site01/Home/about" }