Skip to main content
POST
Duplicate a personalization rule

Path Parameters

personalizationRuleId
integer<int64>
required

Body

application/json

Fields to set on the copy of a targeting rule

name
string

Name of the copied rule

targetingRule
object

Targeting conditions that decide which visitors see the rule, based on segments and triggers

variationId
integer<int64>

ID of the variation the rule shows. It must belong to the parent personalization

Response

Created

Rule that splits the matching traffic between its variations

name
string
required

Name of the personalization rule

parentId
integer<int64>
required

ID of the parent personalization. You set it when you create the rule, and you can't change it afterwards.

ruleType
enum<string>
required

Type of the rule. TARGETING_RULE shows one variation to every visitor who matches the targeting; EXPERIMENT_RULE splits matching traffic between its variations. You set the type when you create the rule, and you can't change it afterwards.

Available options:
TARGETING_RULE,
EXPERIMENT_RULE
cappingPerVisitorConvertGoal
boolean

If true, stop exposing the rule to a visitor once they reach the goal in cappingPerVisitorGoalId

cappingPerVisitorExposedVisits
boolean

If true, stop exposing the rule to a visitor after their number of visits exceeds exposedVisitsSameVisitorMax

cappingPerVisitorExpositions
boolean

If true, stop exposing the rule to a visitor after their total exposures exceed visitorExpositionFrequencyMax

cappingPerVisitorGoalId
integer<int64>

ID of the goal for per-visitor capping. A visitor who reaches this goal is no longer exposed to the rule

customExpositionRate
number<double>

Percentage of the segment that the rule exposes

exposedVisitsSameVisitorMax
integer<int32>

Stop exposing the rule to a visitor after their number of visits exceeds this limit

expositionFrequencyDelay
integer<int64>

Frequency of exposure for different visitors

globalCappingGoalId
integer<int64>

ID of the goal used as the threshold for the total number of exposed visitors

globalCappingNumberVisitors
boolean

Whether to cap the number of exposed visitors

globalCappingVisitorsConfig
enum<string>

Settings for capping the total number of exposed visitors

Available options:
NUMBER_VISITORS,
NUMBER_VISITORS_CONVERT_GOAL,
NUMBER_VISITORS_NOT_CONVERT_GOAL
id
integer<int64>
read-only

Unique ID of the personalization rule

maxNumberVisitorsExposed
integer<int64>

Maximum total number of exposed visitors

multiExpositionFrequencyDelay
integer<int64>

Minimum delay between each exposure

priority
integer<int32>

Priority of the rule when several personalizations with the same configuration are exposed. The parent personalization sets the order of its rules separately.

rollbackConditions
object[]

Conditions that automatically pause the rule when they are met

scenarios
object[]

Conditions for displaying this rule based on previously shown personalizations

schedules
object[]

Schedule settings

status
enum<string>
read-only

Status of the personalization rule

Available options:
ACTIVE,
DRAFT,
PAUSED,
SCHEDULED,
STOPPED
targetingRule
object

Targeting conditions that decide which visitors see the rule, based on segments and triggers

usersTimeZoneSchedule
boolean

Whether the schedule uses the user's time zone

visitExpositionFrequency
integer<int32>

Frequency of exposure during one visit

visitorExpositionFrequency
integer<int32>

Frequency of exposure for a unique visitor

visitorExpositionFrequencyMax
integer<int32>

Stop exposing the rule to a visitor after their exposures exceed this limit

classicAllocationSettings
object

Traffic allocation for each variation. allocationPart is the share of traffic that the rule sends to the variation, as a decimal from 0 (0%) to 1 (100%). The allocations must cover exactly the rule's variationIds and sum to 1.

referenceVariationId
integer<int64>

ID of the reference variation. It must be one of the rule's variations. Otherwise, the rule uses the first variation.

trafficAllocationMethod
enum<string>

Method for allocating traffic across variations. Set to MANUAL to control the allocation yourself using classicAllocationSettings.

Available options:
CONTEXTUAL_BANDIT,
MANUAL,
MULTI_ARMED_BANDIT
variationIds
integer<int64>[]

IDs of the variations the rule uses. Every variation must belong to the parent personalization