A deployment in shape
Endpoints
List all deployments for the workspace, newest first. Fetch a single deployment record. Cancel a deployment that is still in flight. Promote a deployment to live.Status values
completed_at is set when a deployment reaches any terminal status and is null until then.
Allowed transitions
| From | Action | Result |
|---|---|---|
pending, building | POST .../cancel | Moves to cancelled. Irreversible. |
building | (server-driven) | Moves to live on success or failed on error |
| Promotable state | POST .../promote | Moves to live |
| Any terminal state | POST .../cancel | 409 already_terminal |
Common errors
Related
Pages
Publishing a page or theme is what creates a deployment record.