Promote a release between environments
promotePromote the release 'from_env' names into 'to_env' (e.g. staging -> prod), once it has landed in 'from_env'. Until then it is refused by a first word: RELEASE_ON_TRIAL, RELEASE_MOVED and RELEASE_UNREAD ask you to promote again, and RELEASE_FAILED, RELEASE_NOT_RUNNING and RELEASE_GONE need a deploy first. Returns BuildStarted{build_id}; poll build_status as for deploy_release.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"app": "<app>",
"from_env": "<from_env>",
"to_env": "<to_env>"
},
"name": "promote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | ||
| token | No | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused | |
| to_env | Yes | ||
| from_env | Yes | ||
| instances | No |