Apps

Promote staging to production

Changed on

Promote the current staging deployment to production.

Copies environments.staging (deploy_id, asset_prefix) to environments.production and updates build_config.asset_prefix for backward compatibility. Also invalidates the canvas asset cache so the new production version is served immediately.

post/v1/apps/{app_id}/promote

Request

Path parameters

app_idstring required

App ID (e.g. app_abc123def456)

Response

Successful Response

app_idstring required
versioninteger nullable
deploy_idstring required
environmentstring
asset_prefixstring required

Changes

    • warning

      removed the optional property from the response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the optional property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      the endpoint scheme security BearerAuth was added to the API