Roll back a deployment to a previous release
const url = 'https://api.aetherpush.com/v1/apps/example/deployments/example/rollbacks';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"targetRelease":"v3"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.aetherpush.com/v1/apps/example/deployments/example/rollbacks \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "targetRelease": "v3" }'Rolls back the deployment to a previous release. If
targetRelease is omitted, rolls back to the immediately
previous release. If specified, rolls back to that exact label.
The rollback creates a new release with the contents of the
target — it does not delete the current release. The new release
always has isDisabled: false and rollout: null (full rollout).
Cannot roll back across appVersion changes.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Body
Section titled “Request Body”object
Optional label of the release to roll back to (e.g. v3). If
omitted, the deployment is rolled back to the immediately
previous release.
Example
{ "targetRelease": "v3"}Responses
Section titled “Responses”Rollback successful; new release created.
object
object
Signed URL to download the package bundle.
Map of source package hash to diff blob info.
object
object
Signed URL to the package manifest (file hash map).
Set when releaseMethod is Promote.
Set when releaseMethod is Promote or Rollback.
Account email of the releaser.
Package size in bytes.
Unix timestamp in milliseconds.
Example
{ "package": { "appVersion": "1.0.0", "label": "v3", "releaseMethod": "Upload" }}Headers
Section titled “Headers”Unauthenticated, or not a collaborator.
object
Human-readable error message.
Unique identifier for the request, also exposed as the X-Request-Id response header.
Example
{ "error": "The requested resource was not found.", "requestId": "req_abc123"}App or deployment not found, no releases on the deployment, no prior release to roll back to, or target label not found.
object
Human-readable error message.
Unique identifier for the request, also exposed as the X-Request-Id response header.
Example
{ "error": "The requested resource was not found.", "requestId": "req_abc123"}Target release is the current release, or target’s
appVersion differs from the current release.
object
Human-readable error message.
Unique identifier for the request, also exposed as the X-Request-Id response header.
Example
{ "error": "The requested resource was not found.", "requestId": "req_abc123"}