Skip to content

environments.promote

POST
/environments/{environmentId}/promote
curl --request POST \
--url https://example.com/api/environments/example/promote \
--header 'Content-Type: application/json' \
--data '{ "targetName": "example", "targetKind": "local" }'

Promotes one environment configuration set into another. Public docs: /docs/environments/changes/diff-promote/#environment-diff

environmentId
required
string
>= 1 characters
Media type application/json
object
targetName
required
string
>= 1 characters
targetKind
required
string
Allowed values: local development test staging production preview custom

OK

Media type application/json
object
id
required
string
Example generated
{
"id": "example"
}