the software store_

Promote to an environment

API reference · Generated from the API definition

POST/v1/ws/{ws}/envs/{env}/promote

Deploys what runs in another environment (usually stage) here, without rebuilding. Waits for the commit’s checks.

Parameters

ws*string, pathThe workspace's address.
env*string, pathWhere to promote to, such as prod.
from*string, bodyWhere to promote from, such as stage.
appsstring[], bodyThe apps to promote. All of them if left out.

Request

{ "from": "stage", "apps": ["billing-api"] }

Response · 202

{
  "deploys": [
    { "app": "billing-api", "commit": "e293d89", "status": "deploying" }
  ]
}

Errors

403role_missingPromoting to an environment marked production needs Deploy to production.
409checks_pendingThe commit's checks haven't passed yet.

Guides that use this