Skip to main content
POST
/
console
/
v1
/
release_pipelines
/
{id}
Update Pipeline
curl --request POST \
  --url https://statsigapi.net/console/v1/release_pipelines/{id} \
  --header 'Content-Type: application/json' \
  --header 'STATSIG-API-KEY: <api-key>' \
  --data '{
  "name": "<string>",
  "phases": [
    {
      "id": "<string>",
      "name": "<string>",
      "timeIntervalMs": 123,
      "requiredReview": true,
      "rules": [
        {
          "id": "<string>",
          "name": "<string>",
          "conditions": [
            {
              "targetValue": [
                "<string>"
              ],
              "operator": "<string>",
              "field": "<string>",
              "customID": "<string>",
              "type": "app_version"
            }
          ],
          "environments": [
            "<string>"
          ]
        }
      ]
    }
  ]
}'
{
  "message": "Get pipeline success",
  "data": {
    "id": "45aiIXz4aaAadWtYEetjko",
    "name": "Pipeline 1",
    "creatorID": "24hiIXz3kbFaDwtYEetv2i",
    "createdTime": 1705439406615,
    "lastModifierID": "24hiIXz3kbFaDwtYEetv2i",
    "phases": [
      {
        "id": "24hiIXz3kbFaDwtYEetv2i",
        "name": "Phase 1",
        "timeIntervalMs": 3600000,
        "requiredReview": false,
        "rules": [
          {
            "id": "24hiIXz3kbFaDwtYEetv2i",
            "name": "Rule",
            "conditions": [
              {
                "type": "app_version",
                "targetValue": [
                  "1",
                  "222"
                ],
                "operator": "any"
              }
            ],
            "environments": null
          }
        ]
      }
    ]
  }
}

Authorizations

STATSIG-API-KEY
string
header
required

Headers

x-respect-review-settings
string

Optional header to respect review settings for mutation endpoints.

Path Parameters

id
string
required

Body

application/json
name
string

Pipeline Name

phases
object[]

Phases of the release pipeline that will be executed in order.

Response

200 - application/json

Update pipeline

message
string
required

A simple string explaining the result of the operation.

data
object
required

A single result.

I