Skip to main content
POST
/
ramp-schedules
curl -X POST https://api.growthbook.io/api/v1/ramp-schedules \
  -d '{
    "name": "Coverage ramp",
    "featureId": "my-feature",
    "ruleId": "rule_abc",
    "environment": "production",
    "steps": [
      { "trigger": { "type": "interval", "seconds": 86400 }, "actions": [{ "patch": { "coverage": 0.5 } }] },
      { "trigger": { "type": "approval" }, "actions": [{ "patch": { "coverage": 1.0 } }] }
    ]
  }' \
  -u secret_abc123DEF456:
{
  "rampSchedule": {
    "id": "<string>",
    "organization": "<string>",
    "dateCreated": "2023-11-07T05:31:56Z",
    "dateUpdated": "2023-11-07T05:31:56Z",
    "name": "<string>",
    "entityType": "feature",
    "entityId": "<string>",
    "targets": [
      {
        "id": "<string>",
        "entityType": "feature",
        "entityId": "<string>",
        "status": "pending-join",
        "ruleId": "<string>",
        "environment": "<string>",
        "activatingRevisionVersion": 123
      }
    ],
    "steps": [
      {
        "trigger": {
          "type": "interval",
          "seconds": 123,
          "at": "2023-11-07T05:31:56Z"
        },
        "actions": [
          {
            "targetType": "feature-rule",
            "targetId": "<string>",
            "patch": {
              "ruleId": "<string>",
              "coverage": 0.5,
              "condition": "<string>",
              "force": "<unknown>"
            }
          }
        ],
        "approvalNotes": "<string>"
      }
    ],
    "status": "pending",
    "currentStepIndex": 0,
    "nextStepAt": "2023-11-07T05:31:56Z",
    "endActions": [
      {
        "targetType": "feature-rule",
        "targetId": "<string>",
        "patch": {
          "ruleId": "<string>",
          "coverage": 0.5,
          "condition": "<string>",
          "force": "<unknown>"
        }
      }
    ],
    "startDate": "2023-11-07T05:31:56Z",
    "endCondition": {
      "trigger": {
        "type": "scheduled",
        "at": "2023-11-07T05:31:56Z"
      }
    },
    "startedAt": "2023-11-07T05:31:56Z",
    "phaseStartedAt": "2023-11-07T05:31:56Z",
    "pausedAt": "2023-11-07T05:31:56Z",
    "elapsedMs": 123
  }
}

Documentation Index

Fetch the complete documentation index at: https://growthbook-preview.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

If using Bearer auth, pass the Secret Key as the token:

curl https://api.growthbook.io/api/v1 \
-H "Authorization: Bearer secret_abc123DEF456"

Body

application/json
name
string
required
featureId
string

Feature that anchors this schedule. Required when ruleId/environment are set.

ruleId
string

Rule to attach as the initial target. Requires featureId and environment.

environment
string

Environment of the target rule. Requires featureId and ruleId.

templateId
string

Load steps and endActions from a saved template (featureId+ruleId+environment must also be set for auto-injection)

steps
object[]

Ordered ramp steps. When featureId+ruleId+environment are provided, targetId and patch.ruleId in actions are auto-injected — only supply the patch fields you want to change.

endActions
object[]

Actions applied when the ramp completes. targetId and patch.ruleId are auto-injected when featureId+ruleId+environment are provided.

startDate
string<date-time> | null

When to start. Absent/null = immediately on start action.

endCondition
object

Optional hard deadline

Response

200 - application/json

Success

rampSchedule
object
required