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": [
{
"name": "<string>",
"timeIntervalMs": 123,
"requiredReview": true,
"rules": [
{
"name": "<string>",
"conditions": [
{
"type": "app_version",
"targetValue": [
"<string>"
],
"operator": "<string>",
"field": "<string>",
"customID": "<string>"
}
],
"id": "<string>",
"environments": [
"<string>"
]
}
],
"id": "<string>"
}
],
"triggerNotice": "<string>"
}
'{
"message": "Get pipeline success",
"data": {
"id": "45aiIXz4aaAadWtYEetjko",
"name": "Pipeline 1",
"creatorID": "24hiIXz3kbFaDwtYEetv2i",
"createdTime": 1705439406615,
"lastModifierID": "24hiIXz3kbFaDwtYEetv2i",
"lastModifiedTime": 1705439406615,
"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": [
{
"name": "<string>",
"timeIntervalMs": 123,
"requiredReview": true,
"rules": [
{
"name": "<string>",
"conditions": [
{
"type": "app_version",
"targetValue": [
"<string>"
],
"operator": "<string>",
"field": "<string>",
"customID": "<string>"
}
],
"id": "<string>",
"environments": [
"<string>"
]
}
],
"id": "<string>"
}
],
"triggerNotice": "<string>"
}
'{
"message": "Get pipeline success",
"data": {
"id": "45aiIXz4aaAadWtYEetjko",
"name": "Pipeline 1",
"creatorID": "24hiIXz3kbFaDwtYEetv2i",
"createdTime": 1705439406615,
"lastModifierID": "24hiIXz3kbFaDwtYEetv2i",
"lastModifiedTime": 1705439406615,
"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.
Pipeline Name
Phases of the release pipeline that will be executed in order.
Show child attributes
Phase Name
Time interval in milliseconds for this phase
Whether this phase requires review to proceed
Rules to apply in this phase
Show child attributes
The name of this rule.
An array of Condition objects.
Show child attributes
app_version, browser_name, browser_version, country, custom_field, email, environment_tier, fails_gate, fails_segment, ip_address, locale, os_name, os_version, passes_gate, passes_segment, public, time, unit_id, user_id, user_agent, url, javascript, device_model, target_app, experiment_group The Statsig ID of this rule.
The environments this rule is enabled for.
Phase ID
A notice that will be displayed to the user on the config page when the release pipeline is triggered
Update pipeline
A simple string explaining the result of the operation.
A single result.
Show child attributes
Pipeline ID
Pipeline Name
Pipeline Creator ID
Pipeline Creation Time
Last Modifier ID
Last Modification Time
Phases of the release pipeline that will be executed in order.
Show child attributes
Phase Name
Time interval in milliseconds for this phase
Whether this phase requires review to proceed
Rules to apply in this phase
Show child attributes
The name of this rule.
An array of Condition objects.
Show child attributes
app_version, browser_name, browser_version, country, custom_field, email, environment_tier, fails_gate, fails_segment, ip_address, locale, os_name, os_version, passes_gate, passes_segment, public, time, unit_id, user_id, user_agent, url, javascript, device_model, target_app, experiment_group The Statsig ID of this rule.
The environments this rule is enabled for.
Phase ID
A notice that will be displayed to the user on the config page when the release pipeline is triggered
Was this page helpful?