Archives a specified Deployment. The operation is idempotent. An archived Deployment cannot be updated, paused, or unpaused.
Prerequisites
Endpoint and authentication configured. For details, see Overview and authentication.
Endpoint
POST /deployments/{deployment_id}/archive
Path parameters
| Field | Required | Type | Description |
|---|---|---|---|
deployment_id | Yes | string | Deployment ID |
Request example
Response example
Response fields
| Field | Type | Description |
|---|---|---|
id | string | Deployment ID |
type | string | Always deployment |
name | string | Deployment name |
description | string | Deployment description |
agent | object | Associated Agent; contains id and version |
environment_id | string | Associated Environment ID |
schedule | object | Schedule trigger configuration |
initial_events | array<object> | Initial events sent to the Agent on trigger |
resources | array<object> | Mounted file resources |
vault_ids | array<string> | Associated Vault ID list |
metadata | object | Custom key-value pairs |
status | string | Deployment status: active or paused |
paused_reason | string | null | Pause reason |
archived_at | string | Archive timestamp, ISO 8601 |
created_at | string | Creation time, ISO 8601 |
updated_at | string | Last update time, ISO 8601 |
request_id | string | Unique request identifier |
Error codes
| HTTP status | Error code | Description |
|---|---|---|
| 400 | InvalidParameter | Required parameter missing or invalid |
| 401 | InvalidApiKey | Invalid API key provided |