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

    Determines whether to include or exclude visitors based on session duration.

    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

    Conditions of higher importance will have greater values. Default value: 1

    Example: 1
    count int32

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

    include boolean

    Indicates if visitors who matched this condition should be included or excluded from the segment. Default value: 'true'

    matchType string

    Indicates how the specified amount of time should match

    Possible values: [EQUAL, LOWER, GREATER]

    unitOfTime string

    Units of measurements that will be used to determine if sessions are active for the required duration

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

Responses

OK

Schema

    oneOf

    Determines whether to include or exclude visitors based on session duration.

    htmlDescription string

    Html readable description of the targeting condition

    id int64

    Unique Id

    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

    Conditions of higher importance will have greater values. Default value: 1

    Example: 1
    count int32

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

    include boolean

    Indicates if visitors who matched this condition should be included or excluded from the segment. Default value: 'true'

    matchType string

    Indicates how the specified amount of time should match

    Possible values: [EQUAL, LOWER, GREATER]

    unitOfTime string

    Units of measurements that will be used to determine if sessions are active for the required duration

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

Loading...