v1

latestOpenAPI 3.0.32026-07-22177397578.0 KB
TargetingRule

Update targeting rule

Update the targeting rule belonging to this Id

put/targeting-rules/{targetingRuleId}

Path parameters

targetingRuleIdinteger required

Id of the targeting rule object

Query parameters

experimentIdinteger required

Id of the experiment

Request body

idinteger

Unique Id of the targeting rule

segmentConfiguration'ALL_VISITORS' | 'AUTOPROMO_AUTODEFINED' | 'GRAPHICAL_PAGES' | 'HEAT_SLICE' | 'PAGE' | 'SAVED_TEMPLATE' | 'SITE' | 'URL'

Configuration defining how the segment should be applied

segmentIdinteger

Id of the associated segment (user group) for targeting. If segment is deprecated, no trigger will be available for this rule.

siteIdinteger required

Id of the project this targeting rule belongs to

targetingConfigurationParamstring

Additional parameters for trigger configuration. For SAVED_TEMPLATE/HEAT_SLICE - contains segment Id. For PAGE - contains full URL. For URL - contains URL fragment.

triggerConfiguration'ALL_VISITORS' | 'AUTOPROMO_AUTODEFINED' | 'GRAPHICAL_PAGES' | 'HEAT_SLICE' | 'PAGE' | 'SAVED_TEMPLATE' | 'SITE' | 'URL'

Configuration defining how the trigger should be applied. ALL_VISITORS configuration is not allowed for this trigger type

triggerIdinteger

Id of the associated trigger (activation condition)

Response

OK