⚠️ Flipt Cloud is shutting down on August 29, 2025. Learn more about this decision and next steps in our blog post.
curl --request POST \
--url https://try.flipt.io/api/v1/namespaces/default/flags/{flagKey}/rules/{ruleId}/distributions \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"rollout": 0,
"variantId": "<variantid>"
}'
{
"id": "<string>",
"ruleId": "<string>",
"variantId": "<string>",
"rollout": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
curl --request POST \
--url https://try.flipt.io/api/v1/namespaces/default/flags/{flagKey}/rules/{ruleId}/distributions \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"rollout": 0,
"variantId": "<variantid>"
}'
{
"id": "<string>",
"ruleId": "<string>",
"variantId": "<string>",
"rollout": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
curl --request POST \
--url https://try.flipt.io/api/v1/namespaces/default/flags/{flagKey}/rules/{ruleId}/distributions \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"rollout": 0,
"variantId": "<variantid>"
}'
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
OK
The response is of type object
.
Was this page helpful?