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>"
}'
{
"id": "<string>",
"flagKey": "<string>",
"segmentKey": "<string>",
"distributions": [
{
"id": "<string>",
"ruleId": "<string>",
"variantId": "<string>",
"rollout": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"rank": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"namespaceKey": "<string>",
"segmentKeys": [
"<string>"
]
}Rules
Update Rule
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>"
}'
{
"id": "<string>",
"flagKey": "<string>",
"segmentKey": "<string>",
"distributions": [
{
"id": "<string>",
"ruleId": "<string>",
"variantId": "<string>",
"rollout": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"rank": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"namespaceKey": "<string>",
"segmentKeys": [
"<string>"
]
}Documentation Index
Fetch the complete documentation index at: https://docs.flipt.io/llms.txt
Use this file to discover all available pages before exploring further.
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
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Response
200 - application/json
OK
Show child attributes
Show child attributes
Available options:
OR_SEGMENT_OPERATOR, AND_SEGMENT_OPERATOR Was this page helpful?
⌘I