POST
/
api
/
v1
/
namespaces
/
{namespaceKey}
/
flags
/
{flagKey}
/
rollouts
curl --request POST \
  --url https://try.flipt.io/api/v1/namespaces/default/flags/{flagKey}/rollouts \
  --header 'Content-Type: application/json' \
  --header 'Accept: application/json' \
  --data '{
  "rank": 1,
  "threshold": {
    "percentage": 50.0,
    "value": true
  },
  }
}'
{
  "id": "<string>",
  "namespaceKey": "<string>",
  "flagKey": "<string>",
  "type": "UNKNOWN_ROLLOUT_TYPE",
  "rank": 123,
  "description": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "segment": {
    "segmentKey": "<string>",
    "segmentKeys": [
      "<string>"
    ],
    "segmentOperator": "OR_SEGMENT_OPERATOR",
    "value": true
  },
  "threshold": {
    "percentage": 123,
    "value": true
  }
}

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

Body

application/json
rank
integer
required
description
string
segment
object
threshold
object

Response

200 - application/json
id
string
required
namespaceKey
string
required
flagKey
string
required
type
enum<string>
required
Available options:
UNKNOWN_ROLLOUT_TYPE,
SEGMENT_ROLLOUT_TYPE,
THRESHOLD_ROLLOUT_TYPE
rank
integer
required
description
string
required
createdAt
string
required
updatedAt
string
required
segment
object
threshold
object