Skip to main content

Create a new key momentt

Create a new key moment with the given parameters

Request Body required
  • audienceTracking boolean

    Indicates if the key moment is used for audience

  • conditionsData object

    Conditions by which visitors will be segmented

  • firstLevel object[]

    First level conditions. Every level can have many conditions inside. E.g. we have 'firstLevelOrOperators' = [true], 'firstLevel'=[{OrOperators:[false], conditions: [SKY_STATUS, DAY_NIGHT]}, {OrOperators:[true], conditions: [PAGE_TITLE, NEW_VISITORS]}]. Then the expression will look like (SKY_STATUS AND DAY_NIGHT) OR (PAGE_TITLE OR NEW_VISITORS)

  • Array [
  • conditions object[]

    Add conditions (see TargetingConditionIO) to define a segment. The more conditions you add, the more precise your segment will be.

  • Array [
  • oneOf

  • weight int32 required

    More important conditions have greater values. Default value: 1

  • count int32

    Count of time elapsed since session became active according to the 'unitOfTime' field

  • include boolean

    Should visitors who match to the condition be included to or excluded from the segment. Default value: 'true'

  • matchType string

    Possible values: [EQUAL, LOWER, GREATER]

    How to match the specified amount of time

  • unitOfTime string

    Possible values: [SECOND, MINUTE, HOUR, DAY]

    What unit of measurements will be used to define if sessions are active for the required duration

  • ]
  • orOperators boolean[]

    Array of booleans ("or"=true, "and"=false) for binding conditions of second level.

  • ]
  • firstLevelOrOperators boolean[]

    Array of booleans ("or"=true, "and"=false) for binding firstLevel outer conditions.

  • description string

    Description of the key moment

  • isFavorite boolean

    Indicates whether the key moment is marked as a favorite.

  • name string required

    Name of the key moment

  • siteId int64 required

    Unique identifier for the site where the key moment was, or will be created.

  • Responses

    Created


    Schema
    • audienceTracking boolean

      Indicates if the key moment is used for audience

    • audienceTrackingEditable boolean

      This flag shows if audienceTracking can be enabled or disabled. In some cases,audienceTracking can't be disabled. E.g. If a key moment has predictive conditions,it will be tracked by default.

    • conditionsData object

      Conditions by which visitors will be segmented

    • firstLevel object[]

      First level conditions. Every level can have many conditions inside. E.g. we have 'firstLevelOrOperators' = [true], 'firstLevel'=[{OrOperators:[false], conditions: [SKY_STATUS, DAY_NIGHT]}, {OrOperators:[true], conditions: [PAGE_TITLE, NEW_VISITORS]}]. Then the expression will look like (SKY_STATUS AND DAY_NIGHT) OR (PAGE_TITLE OR NEW_VISITORS)

    • Array [
    • conditions object[]

      Add conditions (see TargetingConditionIO) to define a segment. The more conditions you add, the more precise your segment will be.

    • Array [
    • oneOf

    • htmlDescription string

      Html readable description of the targeting condition

    • id int64

      Unique identifier

    • weight int32 required

      More important conditions have greater values. Default value: 1

    • count int32

      Count of time elapsed since session became active according to the 'unitOfTime' field

    • include boolean

      Should visitors who match to the condition be included to or excluded from the segment. Default value: 'true'

    • matchType string

      Possible values: [EQUAL, LOWER, GREATER]

      How to match the specified amount of time

    • unitOfTime string

      Possible values: [SECOND, MINUTE, HOUR, DAY]

      What unit of measurements will be used to define if sessions are active for the required duration

    • ]
  • orOperators boolean[]

    Array of booleans ("or"=true, "and"=false) for binding conditions of second level.

  • ]
  • firstLevelOrOperators boolean[]

    Array of booleans ("or"=true, "and"=false) for binding firstLevel outer conditions.

  • createdBy int64

    Account id of the creator of the key moment

  • dateCreated date-time
  • dateModified date-time
  • description string

    Description of the key moment

  • id int64

    Unique identifier of a key moment

  • isFavorite boolean

    Indicates whether the key moment is marked as a favorite.

  • name string required

    Name of the key moment

  • siteId int64 required

    Unique identifier for the site where the key moment was, or will be created.

  • Loading...