PUT

/api/v1/namespaces/{namespaceKey}/flags/{flagKey}/rules/{id}

curl --request PUT \
  --url https://try.flipt.io/api/v1/namespaces/default/flags/{flagKey}/rules/{id} \
  --header 'Content-Type: application/json' \
  --header 'Accept: application/json' \
  --data '{
  "segmentKey": "<segmentkey>"
}'

Authorizations

Authorizationheaderrequired
string

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

namespaceKeyrequired
string
flagKeyrequired
string
idrequired
string

Body

application/json
segmentKeyrequired
string
segmentKeys
string[]
segmentOperator
enum<string>
Available options:
OR_SEGMENT_OPERATOR,
AND_SEGMENT_OPERATOR

Response

204