- Create a personalization variant
Creates a new personalization variant of a page using a single condition template and parameters.
Note: This endpoint is maintained for backward compatibility and will be deprecated and removed on August 4, 2026. Use the Create a personalization variant v2 endpoint going forward.
The name of the personalization variant.
The name of the audience for the personalization rule.
The unique identifier of the condition template to apply.
A key-value map of parameters for the condition template.
{ "timeOnSite": "30" }
- Production serverhttps://edge-platform.sitecorecloud.io/stream/ai-agent-api/api/v1/personalization/{pageId}/versions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
- string
- null
curl -i -X POST \
'https://edge-platform.sitecorecloud.io/stream/ai-agent-api/api/v1/personalization/{pageId}/versions' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-H 'x-sc-job-id: job-1234' \
-d '{
"name": "Summer Sale Personalization",
"language": "en",
"variant_name": "Summer Sale Variant",
"audience_name": "Returning Customers",
"condition_template_id": "3f2504e0-4f89-11d3-9a0c-0305e82c3301",
"condition_params": {
"timeOnSite": "30"
}
}'Successful response
The client key associated with the flow definition (A/B/n test or personalization).
The URL of the flow definition (A/B/n test or personalization).
A reference identifier for the flow definition (A/B/n test or personalization).
The name of the flow definition (A/B/n test or personalization).
A reference identifier for the user who last modified the flow definition (A/B/n test or personalization).
The timestamp when the flow definition (A/B/n test or personalization) was last modified.
The revision number of the flow definition (A/B/n test or personalization).
Whether the flow definition (A/B/n test or personalization) is archived.
A user-friendly identifier for the flow definition (A/B/n test or personalization).
The type of the flow definition (A/B/n test or personalization).
The subtype of the flow definition (A/B/n test or personalization).
A list of channels associated with the flow definition (A/B/n test or personalization), such as web or mobile.
A list of triggers for the flow definition (A/B/n test or personalization), or null if none.
A list of dashboard links for the experience (A/B/n test or personalization), or null if none.
The business process associated with the flow definition (A/B/n test or personalization).
The unique identifier of the site associated with the A/B/n test or personalization.
The traffic distribution configuration for the personalization experience (A/B/n test or personalization).
A list of transpiled variants for the flow definition (A/B/n test or personalization), or null if none.
A list of variants for the flow definition (A/B/n test or personalization), or null if none.
The current status of the flow definition (A/B/n test or personalization).
The schedule configuration for the flow definition.
Links to the revisions of the flow definition.
The sample size configuration for the flow definition.
{ "clientKey": "pers12345", "href": "https://www.example.com/flow-definition", "ref": "FlowDefinition-12345", "name": "User Registration Flow", "modifiedByRef": "User-67890", "modifiedAt": "2025-01-15T10:30:00Z", "revision": 2, "archived": false, "friendlyId": "user_registration_flow", "type": "INTERACTIVE_API_FLOW", "subtype": "EXPERIENCE", "channels": [ "string" ], "triggers": [ null ], "dashboardLinks": [ null ], "tags": [ null ], "businessProcess": "user_registration", "siteId": "site_123", "traffic": { "type": "unique", "weightingAlgorithm": "random", "modifiedAt": "2026-01-01T00:00:00Z", "splits": [ … ] }, "transpiledVariants": [ { … } ], "variants": [ null ], "status": "DRAFT", "schedule": { "type": "simpleSchedule", "startDate": "2023-01-01T00:00:00Z" }, "revisions": { "href": "https://www.example.com/flow-definition/revisions" }, "sampleSizeConfig": { "baseValue": 0.5, "minimumDetectableDifference": 0.1, "confidenceLevel": 0.95 }, "notificationEnabled": true }