POST
/
api
/
v1
/
namespaces
/
{namespaceKey}
/
flags
/
{flagKey}
/
rules
/
{ruleId}
/
distributions
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"
}

Authorizations

Authorization
string
headerrequired

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

Path Parameters

namespaceKey
string
required
flagKey
string
required
ruleId
string
required

Body

application/json
variantId
string
required
rollout
number
required

Response

200 - application/json
id
string
required
ruleId
string
required
variantId
string
required
rollout
number
required
createdAt
string
required
updatedAt
string
required