Skip to main content
POST
/
projects
/
{projectId}
/
flags
/
{flagId}
/
environments
/
{envId}
/
rollouts
Create rollout
curl --request POST \
  --url http://localhost:3000/projects/{projectId}/flags/{flagId}/environments/{envId}/rollouts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "strategy": "off"
}
'
{
  "statusCode": 123,
  "message": "OK",
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "flag_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "environment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "strategy": "off",
    "config": {
      "strategy": "off"
    },
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "deleted_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

projectId
string<uuid>
required

Valid UUID v4 format

flagId
string<uuid>
required

Valid UUID v4 format

envId
string<uuid>
required

Valid UUID v4 format

Body

application/json

Choose one strategy: "off" (disabled), "percentage" (progressive boolean), "variant" (A/B testing), or "gradual" (time-based progressive).

Always returns the fallback value. No variations are used.

strategy
enum<string>
required

Disables the rollout

Available options:
off

Response

Default Response

statusCode
number
message
string
default:OK
data
object