Constraints
Create Constraint
POST
/
api
/
v1
/
namespaces
/
{namespaceKey}
/
segments
/
{segmentKey}
/
constraints
curl --request POST \
--url https://try.flipt.io/api/v1/namespaces/default/segments/{segmentKey}/constraints \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"operator": "<operator>",
"property": "<property>",
"type": "<type>"
}'
{
"createdAt": "2023-11-07T05:31:56Z",
"description": "<string>",
"id": "<string>",
"namespaceKey": "<string>",
"operator": "<string>",
"property": "<string>",
"segmentKey": "<string>",
"type": "UNKNOWN_COMPARISON_TYPE",
"updatedAt": "2023-11-07T05:31:56Z",
"value": "<string>"
}
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
namespaceKey
string
requiredsegmentKey
string
requiredBody
application/json
description
string
operator
string
requiredproperty
string
requiredtype
enum<string>
requiredThe default is UNKNOWN_COMPARISON_TYPE
Available options:
UNKNOWN_COMPARISON_TYPE
, STRING_COMPARISON_TYPE
, NUMBER_COMPARISON_TYPE
, BOOLEAN_COMPARISON_TYPE
, DATETIME_COMPARISON_TYPE
value
string
Response
200 - application/json
createdAt
string
requireddescription
string
requiredid
string
requirednamespaceKey
string
requiredoperator
string
requiredproperty
string
requiredsegmentKey
string
requiredtype
enum<string>
requiredThe default is UNKNOWN_COMPARISON_TYPE
Available options:
UNKNOWN_COMPARISON_TYPE
, STRING_COMPARISON_TYPE
, NUMBER_COMPARISON_TYPE
, BOOLEAN_COMPARISON_TYPE
, DATETIME_COMPARISON_TYPE
updatedAt
string
requiredvalue
string
requiredWas this page helpful?
curl --request POST \
--url https://try.flipt.io/api/v1/namespaces/default/segments/{segmentKey}/constraints \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"operator": "<operator>",
"property": "<property>",
"type": "<type>"
}'
{
"createdAt": "2023-11-07T05:31:56Z",
"description": "<string>",
"id": "<string>",
"namespaceKey": "<string>",
"operator": "<string>",
"property": "<string>",
"segmentKey": "<string>",
"type": "UNKNOWN_COMPARISON_TYPE",
"updatedAt": "2023-11-07T05:31:56Z",
"value": "<string>"
}