Rollouts
Create Rollout
Overview
OpenFeature Evaluation
Namespaces
Rollouts
Rollouts
Create Rollout
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>",
"value": true,
"segmentKeys": [
"<string>"
],
"segmentOperator": "OR_SEGMENT_OPERATOR"
},
"threshold": {
"percentage": 123,
"value": true
}
}
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
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Response
200 - application/json
OK
The response is of type object
.
Was this page helpful?
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>",
"value": true,
"segmentKeys": [
"<string>"
],
"segmentOperator": "OR_SEGMENT_OPERATOR"
},
"threshold": {
"percentage": 123,
"value": true
}
}