Skip to content

Point the app at a previously published deployment

POST
/api/workspaces/{workspaceId}/apps-v2/{id}/rollback

Deployments are immutable and addressed by commit sha, so rolling back is a repoint — no rebuild and no sandbox. The target sha must still have a stored deployment.

workspaceId
required
string
id
required
string
object
sha
required
string
>= 7 characters

Successful response

object
success

Whether the request succeeded.

boolean
data

Endpoint-specific response payload.

message
string
Example
Operation completed
error
string
Example
Error message

Invalid request

object
success
boolean
error
string
Example
Error message

Internal server error

object
success
boolean
error
string
Example
Error message