rollback_app
Revert an application to a previous release and restart it while keeping runtime data. Optionally restore the release's saved environment variables.
Instructions
Rolls the application back to a previous release: its code goes back to that version and the application restarts. Data the application wrote while running is kept. Environment variables are kept as they are unless restore_environment is true, which also needs the apps:envs scope; run preview_rollback first in that case. Possible errors: PLAN_DOES_NOT_SUPPORT_ROLLBACK, RELEASE_EXPIRED, RELEASE_ALREADY_ACTIVE, RESTORE_COOLDOWN, OPERATION_IN_PROGRESS. (scope: apps:write)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Application ID | |
| release_id | Yes | Release ID (from `list_releases`) | |
| workspace_id | No | ID of the workspace that owns the resource, if any | |
| restore_environment | No | Also restore the environment variables saved with that release (default: false) |