Constraints
Update Constraint
PUT
/api/v1/namespaces/{namespaceKey}/segments/{segmentKey}/constraints/{id}
curl --request PUT \
--url https://try.flipt.io/api/v1/namespaces/default/segments/{segmentKey}/constraints/{id} \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"operator": "<operator>",
"property": "<property>",
"type": "<type>"
}'
Authorizations
Authorizationheaderrequired
string
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
namespaceKeyrequired
string
segmentKeyrequired
string
idrequired
string
Body
application/json
description
string
operatorrequired
string
propertyrequired
string
typerequired
enum<string>
The 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
204
curl --request PUT \
--url https://try.flipt.io/api/v1/namespaces/default/segments/{segmentKey}/constraints/{id} \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"operator": "<operator>",
"property": "<property>",
"type": "<type>"
}'