Skip to main content
POST
Create a new key moment

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required

Name of the key moment

Example:

"My Key Moment"

siteId
integer<int64>
required

Unique Id of the site where the key moment was, or will be created.

Example:

8372

audienceTracking
boolean

Indicates if the key moment is used for tracking audience

conditionDataList
Conditions data node · object[]

Conditions upon which visitors will be included in the key moment in list form

conditionDataTree
Conditions data level · object

Conditions by which visitors will be segmented in tree form

conditionsData
Conditions data · object

Conditions according to which visitors will be segmented

description
string

Description of the key moment

Example:

"The key moment is for new A/B tests"

isFavorite
boolean

Indicates whether the key moment is a favorite

userVisible
boolean

Indicates whether the key moment is hidden from the user.

Response

Created

name
string
required

Name of the key moment

Example:

"My Key Moment"

siteId
integer<int64>
required

Unique Id of the site where the key moment was, or will be created.

Example:

8372

audienceTracking
boolean

Indicates if the key moment is used for tracking audience

audienceTrackingEditable
boolean
read-only

Indicates if audienceTracking can be enabled or disabled. In some cases, audienceTracking cannot be disabled. E.g. When a key moment has predictive conditions, audience will be tracked by default.

conditionDataList
Conditions data node · object[]

Conditions upon which visitors will be included in the key moment in list form

conditionDataTree
Conditions data level · object

Conditions by which visitors will be segmented in tree form

conditionsData
Conditions data · object

Conditions according to which visitors will be segmented

createdBy
integer<int64>
read-only

Account Id of the key moment creator

dateCreated
string<date-time>
read-only

Date the key moment was created

dateModified
string<date-time>
read-only

Date the key moment was modified

description
string

Description of the key moment

Example:

"The key moment is for new A/B tests"

id
integer<int64>
read-only

Unique Id of the key moment

isFavorite
boolean

Indicates whether the key moment is a favorite

List of links to related entities.This is an optional field that is included in the request body

userVisible
boolean

Indicates whether the key moment is hidden from the user.