Request

Adds a new language version for an existing page. This allows you to have the same page content available in multiple languages.

Security
HTTPBearer
Path
pageIdstring, (uuid)(Pageid)required

The unique identifier of the page.To get this ID, use List pages of a site.

Example:f0b81bcc-7388-46be-b109-6e73d1114470
Headers
x-sc-job-idany(X-Sc-Job-Id)

A unique identifier for the job, used to trace, audit, and revert actions performed by an AI agent through the Agent API.

Example:job-1234
Bodyapplication/jsonrequired
languagestring(Language)

The language code of the new version to add.

Default:"en"
Example:"en"
curl -i -X POST \
  https://edge-platform.sitecorecloud.io/stream/ai-agent-api/api/v1/pages/f0b81bcc-7388-46be-b109-6e73d1114470/add-language \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -H 'x-sc-job-id: job-1234' \
  -d '{
    "language": "en"
  }'

Responses

Successful response

Bodyapplication/json
successboolean(Success)

Whether the language version was added successfully.

Example:true
Response
{ "success": true }