Releases
Preview Application Rollback
Previews which environment variables a rollback to this release would add, change or remove, with names and kinds of change only, never values.
GET
Preview Application Rollback
Returns which environment variables would change if you rolled the application back to this release and restored its variables. Only the variable names and the kind of change come back, never the values. Nothing is changed.
Rolling back does not restore variables unless you ask it to. Check this preview first, then send the rollback request with
Each change is compared with the current variables of the application, including the ones saved but not yet applied by a restart. Those are the variables a rollback overwrites:
restore_environment: true if the changes are the ones you want.
The ID of the application. If the application belongs to a workspace, pass its ID in the
workspace_id query parameter.The ID of the release you would roll back to, as returned by the release list.
added: the release has the variable, and the current variables do not.removed: the current variables have the variable, and the release does not. A variable created after the release and not yet applied by a restart appears asremoved.modified: both have the variable, with different values.
apps:envs scope when called with an API key. For a workspace member, it requires the apps:envs permission.
Response
Error Responses
Possible error codes:
AUTH_TOKEN_MISSING,API_KEY_INVALID,SESSION_REVOKED: TheAuthorizationheader is missing, the API key is invalid, or the dashboard session was revoked (401).API_KEY_IP_DENIED: The API key is used from an IP outside its allowlist (403).APP_NOT_FOUND: The application does not exist, or it is not owned by this account or workspace (404).RELEASE_NOT_FOUND: The release was not found (404).PLAN_DOES_NOT_SUPPORT_ROLLBACK: Your plan does not include rolling back to earlier releases (403). Rollback starts on Pro.API_KEY_SCOPE_DENIED: The API key does not have theapps:envsscope (403).
A release keeps the variables the application was started with. Releases created before this feature launched have none saved, so their preview is always empty.
Last modified on November 20, 2026