Skip to main content

Update condition

PUT 

/segments/:segmentId/conditions/:conditionId

Update one condition in a segment

Request

Path Parameters

    segmentId int64required
    conditionId int64required

Body

required

    oneOf

    Includes or excludes visitors according to the time elapsed since the beginning of the session

    targetingType stringrequired

    Targeting condition type. According to this field it's necessary to add some additional fields

    Possible values: [PAGE_URL, PAGE_TITLE, LANDING_PAGE, ORIGIN, ORIGIN_TYPE, REFERRERS, NEW_VISITORS, BROWSER_LANGUAGE, GEOLOCATION, DEVICE_TYPE, SCREEN_DIMENSION, VISITOR_IP, AD_BLOCKER, PREVIOUS_PAGE, KEY_PAGES, PAGE_VIEWS, FIRST_VISIT, LAST_VISIT, ACTIVE_SESSION, TIME_SINCE_PAGE_LOAD, SAME_DAY_VISITS, VISITS, VISITS_BY_PAGE, INTERNAL_SEARCH_KEYWORDS, TABS_ON_SITE, HEAT_SLICE, SKY_STATUS, TEMPERATURE, DAY_NIGHT, FORECAST_SKY_STATUS, FORECAST_TEMPERATURE, DAY_OF_WEEK, TIME_RANGE, HOUR_MINUTE_RANGE, JS_CODE, COOKIE, EVENT, EXPLICIT_TRIGGER, BROWSER, OPERATING_SYSTEM, DOM_ELEMENT, MOUSE_OUT, TARGET_EXPERIMENT, TARGET_PERSONALIZATION, EXCLUSIVE_EXPERIMENT, CONVERSIONS, CUSTOM_DATUM, YSANCE_SEGMENT, YSANCE_ATTRIBUT, TEALIUM_BADGE, TEALIUM_AUDIENCE, PRICE_OF_DISPLAYED_PAGE, NUMBER_OF_VISITED_PAGES, VISITED_PAGES, SEGMENT, KEY_MOMENT, CUSTOM, SDK_LANGUAGE, VISITOR_CODE, EXCLUSIVE_FEATURE_FLAG, TARGET_FEATURE_FLAG, APPLICATION_VERSION]

    weight int32required

    More important conditions have greater values. Default value: 1

    Example: 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

    How to match the specified amount of time

    Possible values: [EQUAL, LOWER, GREATER]

    unitOfTime string

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

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

Responses

OK

Schema

    oneOf

    Includes or excludes visitors according to the time elapsed since the beginning of the session

    htmlDescription string

    Html readable description of the targeting condition

    id int64

    Unique identifier

    targetingType stringrequired

    Targeting condition type. According to this field it's necessary to add some additional fields

    Possible values: [PAGE_URL, PAGE_TITLE, LANDING_PAGE, ORIGIN, ORIGIN_TYPE, REFERRERS, NEW_VISITORS, BROWSER_LANGUAGE, GEOLOCATION, DEVICE_TYPE, SCREEN_DIMENSION, VISITOR_IP, AD_BLOCKER, PREVIOUS_PAGE, KEY_PAGES, PAGE_VIEWS, FIRST_VISIT, LAST_VISIT, ACTIVE_SESSION, TIME_SINCE_PAGE_LOAD, SAME_DAY_VISITS, VISITS, VISITS_BY_PAGE, INTERNAL_SEARCH_KEYWORDS, TABS_ON_SITE, HEAT_SLICE, SKY_STATUS, TEMPERATURE, DAY_NIGHT, FORECAST_SKY_STATUS, FORECAST_TEMPERATURE, DAY_OF_WEEK, TIME_RANGE, HOUR_MINUTE_RANGE, JS_CODE, COOKIE, EVENT, EXPLICIT_TRIGGER, BROWSER, OPERATING_SYSTEM, DOM_ELEMENT, MOUSE_OUT, TARGET_EXPERIMENT, TARGET_PERSONALIZATION, EXCLUSIVE_EXPERIMENT, CONVERSIONS, CUSTOM_DATUM, YSANCE_SEGMENT, YSANCE_ATTRIBUT, TEALIUM_BADGE, TEALIUM_AUDIENCE, PRICE_OF_DISPLAYED_PAGE, NUMBER_OF_VISITED_PAGES, VISITED_PAGES, SEGMENT, KEY_MOMENT, CUSTOM, SDK_LANGUAGE, VISITOR_CODE, EXCLUSIVE_FEATURE_FLAG, TARGET_FEATURE_FLAG, APPLICATION_VERSION]

    weight int32required

    More important conditions have greater values. Default value: 1

    Example: 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

    How to match the specified amount of time

    Possible values: [EQUAL, LOWER, GREATER]

    unitOfTime string

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

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

Loading...