POST /v1/deployments/{id}/archive
Archives a deployment. Archived deployments stop all scheduled runs and are hidden from default listings (pass include_archived=true to the List endpoint to see them). The archived_at timestamp is set and upcoming_runs_at becomes empty. The deployment name is appended with _archived_<unix_timestamp> to free the original name for reuse.
Archiving is irreversible via the API. There is currently no unarchive endpoint.
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 witharchived_at set.
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 archived |
Related
Pause a deployment
Pause scheduling while preserving configuration (reversible).
List deployments
Page through all deployments under the account.
Create a deployment
Create a new cron-scheduled or manually-triggered deployment.
Errors reference
All API error codes and the error envelope convention.