Validate segment
1 min
POST
//api.us1.odp.optimizely.com/v3/segments/{segment_id}:validate
segment_idstring
acceptstringGenerated from available response content types
bodyobject
200Valid segment definition.
400Bad Request.
curl --request POST \
--url //api.us1.odp.optimizely.com/v3/segments/{segment_id}:validate \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"definition": {
"root_condition": {
"combination": {
"conjunction": "CONJUNCTION_NOT_SET"
},
"customer_condition": {
"customer_filter": {
"combination": {
"conjunction": "CONJUNCTION_NOT_SET"
},
"comparison": {
"comparator": "COMPARATOR_NOT_SET"
},
"truncate_time": {
"unit": "TIME_UNIT_NOT_SET"
},
"shift_time": {
"unit": "TIME_UNIT_NOT_SET"
}
}
},
"sequence_condition": {
"sequence": {
"entry_event_filter": {
"combination": {
"conjunction": "CONJUNCTION_NOT_SET"
},
"comparison": {
"comparator": "COMPARATOR_NOT_SET"
},
"truncate_time": {
"unit": "TIME_UNIT_NOT_SET"
},
"shift_time": {
"unit": "TIME_UNIT_NOT_SET"
}
},
"unique_key_sources": [
{
"combination": {
"conjunction": "CONJUNCTION_NOT_SET"
},
"comparison": {
"comparator": "COMPARATOR_NOT_SET"
},
"truncate_time": {
"unit": "TIME_UNIT_NOT_SET"
},
"shift_time": {
"unit": "TIME_UNIT_NOT_SET"
}
}
],
"goal": {
"combination": {
"conjunction": "CONJUNCTION_NOT_SET"
}
},
"disqualifier": {
"combination": {
"conjunction": "CONJUNCTION_NOT_SET"
}
}
}
}
}
}
}'