Get a targeting rule
GET/targeting-rules/:targetingRuleId
Get a targeting rule with the given id
Request
Path Parameters
Id of the targeting rule object
Responses
- 200
- 400
- 401
- 403
- 404
- 423
- 500
OK
- */*
- Schema
- Example (from schema)
Schema
Unique Id of the targeting rule
Configuration defining how the segment should be applied
Possible values: [ALL_VISITORS
, GRAPHICAL_PAGES
, HEAT_SLICE
, PAGE
, SAVED_TEMPLATE
, SITE
, URL
]
Id of the associated segment (user group) for targeting. If segment is deprecated, no trigger will be available for this rule.
Id of the project this targeting rule belongs to
Additional parameters for trigger configuration. For SAVED_TEMPLATE/HEAT_SLICE - contains segment Id. For PAGE - contains full URL. For URL - contains URL fragment.
Configuration defining how the trigger should be applied. ALL_VISITORS configuration is not allowed for this trigger type
Possible values: [ALL_VISITORS
, GRAPHICAL_PAGES
, HEAT_SLICE
, PAGE
, SAVED_TEMPLATE
, SITE
, URL
]
Id of the associated trigger (activation condition)
{
"id": 0,
"segmentConfiguration": "ALL_VISITORS",
"segmentId": 0,
"siteId": 0,
"targetingConfigurationParam": "string",
"triggerConfiguration": "ALL_VISITORS",
"triggerId": 0
}
Bad Request
- */*
- Schema
- Example (from schema)
Schema
Possible values: [SUCCESS
, ERROR
]
{
"code": "string",
"impersonator": "string",
"message": "string",
"name": "string",
"status": "SUCCESS",
"sub": "string",
"time": 0,
"timestamp": "2024-07-29T15:51:28.071Z"
}
Unauthorized
- */*
- Schema
- Example (from schema)
Schema
Possible values: [SUCCESS
, ERROR
]
{
"code": "string",
"impersonator": "string",
"message": "string",
"name": "string",
"status": "SUCCESS",
"sub": "string",
"time": 0,
"timestamp": "2024-07-29T15:51:28.071Z"
}
Forbidden
- */*
- Schema
- Example (from schema)
Schema
Possible values: [SUCCESS
, ERROR
]
{
"code": "string",
"impersonator": "string",
"message": "string",
"name": "string",
"status": "SUCCESS",
"sub": "string",
"time": 0,
"timestamp": "2024-07-29T15:51:28.071Z"
}
Not Found
- */*
- Schema
- Example (from schema)
Schema
Possible values: [SUCCESS
, ERROR
]
{
"code": "string",
"impersonator": "string",
"message": "string",
"name": "string",
"status": "SUCCESS",
"sub": "string",
"time": 0,
"timestamp": "2024-07-29T15:51:28.071Z"
}
Locked
- */*
- Schema
- Example (from schema)
Schema
Possible values: [SUCCESS
, ERROR
]
{
"code": "string",
"impersonator": "string",
"message": "string",
"name": "string",
"status": "SUCCESS",
"sub": "string",
"time": 0,
"timestamp": "2024-07-29T15:51:28.071Z"
}
Internal Server Error
- */*
- Schema
- Example (from schema)
Schema
Possible values: [SUCCESS
, ERROR
]
{
"code": "string",
"impersonator": "string",
"message": "string",
"name": "string",
"status": "SUCCESS",
"sub": "string",
"time": 0,
"timestamp": "2024-07-29T15:51:28.071Z"
}