Typescript (SDK)
Deployments
Roll back a site
Re-ships an earlier deployment’s commit to production. Defaults to the previous shipped deployment (the “undo the bad deploy” case); pass deployment_id to target a specific historical deployment instead. Asynchronous: responds 202 with a new pending deployment whose status moves to live/failed. Poll GET /sites/{id}/deployments to track it.
POST
Typescript (SDK)
Authorizations
API key in the format: Bearer {api_token}
Path Parameters
The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
Body
application/json
Id of a specific deployment to roll back to (e.g. "dpl_abc123"), from the deploy history. Omit to roll back to the previous shipped deployment.
Response
The queued rollback deployment
Available options:
pending, building, live, failed, superseded, unpublished 
