Operation
A long-running unit of work. Durable; each step is idempotent and re-runnable.
Fields
Section titled “Fields”| Field | Type | Description |
|---|---|---|
id * |
string | |
kind * |
string | What the operation does. |
status * |
OperationStatus | |
summary |
string | |
workspace_id |
string | |
project_id |
string or null | |
environment_id |
string or null | |
resource |
ResourceRef or any or null | The resource this operation creates or changes. |
progress |
object | |
steps |
array of OperationStep | |
result |
object or null | Kind-specific result once succeeded. |
error |
Problem or any or null | |
approval |
ApprovalRef or any or null | |
created_by |
Actor | |
created_at * |
string (date-time) | |
started_at |
string (date-time) or null | |
finished_at |
string (date-time) or null | |
links |
object |
* always present
Example
Section titled “Example”{ "id": "op_01jbx2m9k7q4r8t5v6w3y0z1op", "kind": "deployment.create", "status": "running", "summary": "Deploying web to production", "workspace_id": "ws_01jbx2m9k7q4r8t5v6w3y0z1ws", "project_id": "prj_01jbx2m9k7q4r8t5v6w3y0z1pr", "environment_id": "env_01jbx2m9k7q4r8t5v6w3y0z1en", "resource": { "type": "deployment", "id": "dep_01jbx2m9k7q4r8t5v6w3y0z1dp", "url": "/v1/deployments/dep_01jbx2m9k7q4r8t5v6w3y0z1dp" }, "progress": { "current_step": "build", "completed_steps": 1, "total_steps": 6, "percent": 20 }, "steps": [ { "name": "resolve", "title": "Reading your settings", "status": "succeeded", "attempt": 1, "started_at": "2026-10-23T14:02:00Z", "finished_at": "2026-10-23T14:02:01Z" }, { "name": "build", "title": "Building your app", "status": "running", "attempt": 1, "started_at": "2026-10-23T14:02:01Z", "finished_at": null } ], "created_by": { "type": "user", "id": "usr_01jbx2m9k7q4r8t5v6w3y0z1us", "display": "Stewart Webb" }, "created_at": "2026-10-23T14:02:00Z", "links": { "self": "/v1/operations/op_01jbx2m9k7q4r8t5v6w3y0z1op", "events": "/v1/operations/op_01jbx2m9k7q4r8t5v6w3y0z1op/events", "resource": "/v1/deployments/dep_01jbx2m9k7q4r8t5v6w3y0z1dp" }}Used by
Section titled “Used by”- Close a workspace
- Delete a project
- Create an environment
- Delete an environment
- Delete a service from every environment
- Restart the running deployment
- Deploy
- Roll back to this deployment
- Create a database
- Change plan, storage, extensions, masking or access
- Delete a database (7-day soft delete)
- Cancel a pending deletion
- Rotate credentials (rolling, dual-password window)
- Branch a database (copy-on-write clone, masked)
- Delete a branch
- Take a backup now
- Restore from a backup or point in time
- Create a volume
- Grow, change HA, or attach to a service
- Delete a volume (7-day soft delete)
- Apply a plan
- Re-run every safety check now
- Apply a finding’s one-click fix (or open an AI fix PR)
- Get an operation
- Request cancellation
- Create a project from a template and deploy it