POST /v1/deployments/{id}/run
Manually triggers a deployment run. The deployment must be in active status (not paused or archived). If the maximum concurrent run limit is reached, the run is recorded with skipped status.
Path parameters
| Parameter | Type | Description |
|---|---|---|
id | string | Deployment ID with the dep_ prefix |
Headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer $QODER_PAT |
Content-Type | Yes | application/json |
Request body
No request body is required. Send an empty JSON object{} or omit the body.
Example request
Example response
HTTP 200 OK Returns a Deployment Run object.Response fields (Deployment Run)
| Field | Type | Description |
|---|---|---|
id | string | Run unique identifier (drun_ prefix) |
type | string | Always "deployment_run" |
deployment_id | string | Parent Deployment ID |
agent | object | Agent reference: {id, type, version} |
status | string | Run status: pending, running, completed, failed, skipped |
error | object or null | Error details ({message, type}) when failed, null otherwise |
trigger_context | object | Trigger source: {"type": "manual"}, {"type": "schedule"}, or {"type": "retry"} |
session_id | string | Associated Session ID (present once session is created) |
completed_at | string | Completion timestamp (ISO 8601, present when terminal) |
duration_ms | integer | Run duration in milliseconds (present when completed) |
cas_run_extras | object | CAS-specific metadata: attempt, turn_id, started_at |
triggered_at | string | Trigger timestamp (ISO 8601) |
created_at | string | Record creation time (ISO 8601) |
Errors
| HTTP | Type | Trigger |
|---|---|---|
| 401 | authentication_error | PAT invalid or expired |
| 404 | not_found_error | Deployment does not exist |
| 409 | conflict_error | Deployment is archived or not in active status |
Related
Get a deployment run
Inspect the status and session ID of a single run.
List deployment runs
View the run history of this deployment.
List all runs
Query run history across all deployments.
Get a deployment
Inspect deployment configuration and next scheduled time.