Cloady Docs
API ReferenceEndpointsDeploys

Roll an app back to a previous deploy's image

Needs a running, build-backed app whose target image is still in the registry. Restarts every service in the instance, database included.

POST
/api/workspaces/{workspaceSlug}/apps/{appSlug}/deploys/{deployId}/rollback
AuthorizationBearer <token>

Personal API token (cldy_…)

In: header

Path Parameters

workspaceSlug*string
appSlug*string
deployId*string

Query Parameters

env?string

Value in

  • "production"
  • "preview"
  • "development"
region?string

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/workspaces/string/apps/string/deploys/string/rollback"
{  "deploy": {    "id": "string",    "status": "building",    "commitMsg": "string",    "sha": "string",    "author": "string",    "durationMs": 0,    "createdAt": "string",    "finishedAt": "string",    "canRollback": true  }}