Authorizations
Headers
Optional header to respect review settings for mutation endpoints.
Path Parameters
Body
application/json
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
}
]
}
]
}
}
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
}
]
}
]
}
}
Optional header to respect review settings for mutation endpoints.
Was this page helpful?