Skip to main content
POST
Promote a proven build into another environment

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

application_id
string
required

Body

application/json

The two environments, by the ids the environments read answers with.

source_environment_id
string
required
target_environment_id
string
required

Response

Successful Response

The write's answer. A target environment with several installations (one per namespace) is promoted as one row and one deploy execution per installation; promotion_id and operation_id are the first installation's.

promotion_id
string | null
required

null when nothing was written: the target already ran the build.

state
enum<string>
required
Available options:
promoted,
already_current
image_tag
string
required
commit_sha
string
required
previous_image_tag
string | null
required

What the target ran when the promotion was requested; null when that could not be read, never when nothing ran.

operation_id
string | null
required

The deploy execution carrying the outcome; null when no deploy was enqueued.

source
ApplicationPromotionEnvironment · object
required

One side of a promotion. id is the environment's id (a cluster id in wave-1 identity).

target
ApplicationPromotionEnvironment · object
required

One side of a promotion. id is the environment's id (a cluster id in wave-1 identity).