Skip to main content
POST
Roll a deployment back to an earlier revision's release

Authorizations

Authorization
string
header
required

A workspace-scoped Cloud JWT.

Path Parameters

id
string
required

Body

application/json
baseRevision
integer
required

The revision the caller last read. The rollback is refused once another change has moved the deployment past it.

toRevision
integer

The earlier revision whose release to return to; the revision before the current one when omitted.

Response

The deployment runs the earlier revision's release now.

Where a rollback left the deployment.

id
string
required

The deployment's id, which a rollback never changes.

revision
integer
required

The deployment's current revision.

releaseId
string
required

The release the deployment runs at that revision.

kind
string
required

What made that revision: rollback, or, where the target release was already current, that revision's own kind. Open: clients tolerate values they do not know.

fromRevision
integer

The revision a rollback restored; absent on any other kind.

pendingUpdate
object | null

An update that waits for its release's running copy to be ready, or an unfinished cancellation of that copy. Cancellation keeps the original baseRevision and since so existing clients can retry stop/delete after dispatch failure. An unfinished cancellation reads failed, keeping its dismissal available even while the copy is stopping. Null after the move or cancellation finishes.