Skip to content
GitHub

Promote the app to another environment of the same project.

POST
/api/v1/projects/{project}/environments/{environment}/apps/{app}/promote
curl --request POST \
--url https://example.com/api/v1/projects/example/environments/example/apps/example/promote \
--header 'Content-Type: application/json' \
--data '{ "to_environment": "production", "dry_run": true }'
project
required
string

Project name

environment
required
string

Environment short name (source)

app
required
string

App name

Media typeapplication/json
object
to_environment
required

Target environment (short name) in the same project.

string
Example
production
dry_run

Only report what would change.

boolean
Media typeapplication/json
object
dry_run
required
boolean
created
required

The app did not exist in the target and was (or would be) created.

boolean
changes
required

Human-readable diff; values of environment variables are never shown.

Array<string>
warnings
required

E.g. secrets referenced by the app that are missing in the target.

Array<string>
app
One of:
null
Example
{
"app": {
"env": [
{
"name": "LOG_LEVEL"
}
],
"volumes": [
{
"name": "data",
"mount_path": "/data",
"size": "5Gi"
}
]
}
}
Media typeapplication/json

Problem Details body.

object
code
required

Stable machine-readable code, e.g. forbidden.

string
title
required

Short human readable title.

string
status
required

HTTP status.

integer format: int32
detail

Details, if safe to expose.

string | null
Example
{
"code": "forbidden"
}
Media typeapplication/json

Problem Details body.

object
code
required

Stable machine-readable code, e.g. forbidden.

string
title
required

Short human readable title.

string
status
required

HTTP status.

integer format: int32
detail

Details, if safe to expose.

string | null
Example
{
"code": "forbidden"
}
Media typeapplication/json

Problem Details body.

object
code
required

Stable machine-readable code, e.g. forbidden.

string
title
required

Short human readable title.

string
status
required

HTTP status.

integer format: int32
detail

Details, if safe to expose.

string | null
Example
{
"code": "forbidden"
}