POST /v1/deployments/{id}/pause
Pauses a deployment. Scheduled runs will not fire while paused. The deployment’s status becomes "paused" and paused_reason is set to {"type": "manual"}.
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.Example request
Example response
HTTP 200 OK Returns the full Deployment object with updated status.Errors
| HTTP | Type | Trigger |
|---|---|---|
| 401 | authentication_error | PAT invalid or expired |
| 404 | not_found_error | Deployment does not exist |
| 409 | conflict_error | Deployment is already paused |
Related
Unpause a deployment
Resume scheduling from a paused state.
Archive a deployment
Permanently terminate the deployment.
Get a deployment
Inspect the deployment’s current status and configuration.
Errors reference
All API error codes and the error envelope convention.