Save page fields

Request

Updates the fields of a page.

Security
Bearer
Path
pageIdstringrequired

The page identifier.

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

The identifier of the environment.

Body

Input data containing fields of the page

fieldsArray of objects(PageFieldValue)required

The field values for the page.

languagestring, non-emptyrequired

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

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

The site name. Example value: my-site

Example:"my-site"
pageVersioninteger, (int32)

The version number of the page to save. Example value: 2

Example:2
revisionstring or null

The revision identifier of the page to save. Example value: f7d29433-001e-4a35-a744-876759dba468

Example:"f7d29433-001e-4a35-a744-876759dba468"
curl -i -X POST \
  'https://xmapps-api.sitecorecloud.io/api/v1/pages/8f0b81bc-7388-46be-b109-6e73d1114470/fields?environmentId=string' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "fields": [
      {
        "id": "field-id-123",
        "value": "Hello World",
        "originalValue": "Original Text",
        "reset": false
      }
    ],
    "language": "en-US",
    "site": "my-site",
    "pageVersion": 2,
    "revision": "f7d29433-001e-4a35-a744-876759dba468"
  }'

Responses

Success

Bodyapplication/json
errorsArray of objects or null(SavePageError)

The list of errors that occurred during the save operation.

savedPageobject(SavedPage)
validationErrorsArray of objects or null(PageValidationError)

The list of validation errors that occurred during the save operation.

warningsArray of strings or null

The list of warnings that occurred during the save operation.

newCreatedVersionobject(PageVersionInfo)
Response
{ "errors": [ { … } ], "savedPage": { "fields": [ … ], "id": "8f0b81bc-7388-46be-b109-6e73d1114470", "language": "en-US", "revision": "f7d29433-001e-4a35-a744-876759dba468", "version": 2 }, "validationErrors": [ { … } ], "warnings": [ "string" ], "newCreatedVersion": { "pageId": "8f0b81bc-7388-46be-b109-6e73d1114470", "displayName": "Site Home", "versionNumber": 2 } }