Constraints
Create Constraint
POST
/api/v1/segments/{segmentKey}/constraints
Bearer*
curl --request POST \
--url https://try.flipt.io/api/v1/segments/{segmentKey}/constraints \
--header 'Authorization: Bearer AUTH_VALUE' \
--header 'Content-Type: application/json' \
--data '{
"type": "string",
"property": "string",
"operator": "string"
}'
Parameters
segmentKeyRequired
string
Body
typeRequired
string
The default is UNKNOWN_COMPARISON_TYPE
Available options:
UNKNOWN_COMPARISON_TYPE
, STRING_COMPARISON_TYPE
, NUMBER_COMPARISON_TYPE
, BOOLEAN_COMPARISON_TYPE
propertyRequired
string
operatorRequired
string
value
string
Response
idRequired
string
segmentKeyRequired
string
typeRequired
string
The default is UNKNOWN_COMPARISON_TYPE
Available options:
UNKNOWN_COMPARISON_TYPE
, STRING_COMPARISON_TYPE
, NUMBER_COMPARISON_TYPE
, BOOLEAN_COMPARISON_TYPE
propertyRequired
string
operatorRequired
string
valueRequired
string
createdAtRequired
string
updatedAtRequired
string
curl --request POST \
--url https://try.flipt.io/api/v1/segments/{segmentKey}/constraints \
--header 'Authorization: Bearer AUTH_VALUE' \
--header 'Content-Type: application/json' \
--data '{
"type": "string",
"property": "string",
"operator": "string"
}'