POST

/api/v1/namespaces/{namespaceKey}/flags/{flagKey}/rollouts

{
  "createdAt": "string",
  "description": "string",
  "flagKey": "string",
  "id": "string",
  "namespaceKey": "string",
  "rank": "integer",
  "segment": {
    "segmentKey": "string",
    "segmentKeys": [
      "string"
    ],
    "segmentOperator": "OR_SEGMENT_OPERATOR",
    "value": "boolean"
  },
  "threshold": {
    "percentage": "number",
    "value": "boolean"
  },
  "type": "UNKNOWN_ROLLOUT_TYPE",
  "updatedAt": "string"
}
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
  },
  }
}'

Authorizations

Authorizationheaderrequired
string

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

Path Parameters

namespaceKeyrequired
string
flagKeyrequired
string

Body

application/json
description
string
rankrequired
integer
segment
object
threshold
object

Response

200 - application/json
createdAtrequired
string
descriptionrequired
string
flagKeyrequired
string
idrequired
string
namespaceKeyrequired
string
rankrequired
integer
segment
object
threshold
object
typerequired
enum<string>
Available options:
UNKNOWN_ROLLOUT_TYPE,
SEGMENT_ROLLOUT_TYPE,
THRESHOLD_ROLLOUT_TYPE
updatedAtrequired
string