Get Target Rules History
Returns a list of versions, each denoting a set of the Targeting Settings. Every time these settings are modified, a new version is created. This endpoint allows for paging through the history of these settings for audit purposes.
Query Parameters
The token to start the page at. The default is the most recent version of settings.
The max number of returned versions. The default is 20 and the max is 100.
A successful response.
Schema
- Array [
- Array [
- ALL_SESSIONS: Apply always (default).
- NO_SESSIONS: Never apply.
- PREVIEW_SESSIONS_ONLY: Apply only for "previewed" sessions e.g. to test the addition of a BLOCK_UNMASK rule.
- LIVE_SESSIONS_ONLY: Apply only for non-preview sessions e.g. to test the removal of an BLOCK_EXCLUDE rule.
- Array [
- UID: common
- PLATFORM: a value of schema.PageTypeEnum
- DOMAIN: web related
- APP_VERSION: native mobile related
- BUILD_TYPE: application build variant
- FS_VERSION: application fs instrumentation version
- FS_BUILD_ID: application fs build id
- OS_VERSION: operating system version
- MODEL: device model
- MANUFACTURER: device manufacturer
- Array [
- ]
- ]
- Array [
- ]
- ]
- ]
versions object[] optional
sessionTargetingRules object[] optional
Possible values: [ALL_SESSIONS
, NO_SESSIONS
, PREVIEW_SESSIONS_ONLY
, LIVE_SESSIONS_ONLY
]
Default value: ALL_SESSIONS
RuleScope is used to limit the scope exclusion rules so a customer can dogfood a rule in "audited" sessions they record themselves before turning the rule on for all of their users.
conditions object[] optional
Possible values: [UID
, IP
, LOCATION
, PLATFORM
, DOMAIN
, USER_AGENT
, APP_VERSION
, BUILD_TYPE
, FS_VERSION
, FS_BUILD_ID
, OS_VERSION
, MODEL
, MANUFACTURER
]
identified user
application version string (can be normalized to a numeric value for comparison operators, if in dotted quad form)
Possible values: [EQ
, NEQ
, LT
, LTE
, GT
, GTE
, RANGE
, CONTAINS
]
values object[] optional
versionVal object optional
Possible values: [AND
, OR
]
children object[] optional
Possible values: [AND
, OR
]
metadata object optional
When this entity was last updated.
Who made the last update to this entity.
When this entity was first created.
Who first created this entity.
{
"versions": [
{
"sessionTargetingRules": [],
"metadata": {
"lastUpdated": "2020-10-01T23:53:06.496Z",
"lastUpdatedBy": "bob@example.com",
"created": "2020-10-01T23:53:06.496Z",
"createdBy": "bob@example.com"
}
}
],
"next_pagination_token": ""
}