POST /v1/vaults/{vault_id}/archive
Archives the specified vault. Archived vaults are no longer used for active work but remain queryable.
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
vault_id | string | Yes | Vault unique identifier |
Headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer $QODER_PAT |
Example request
Example response
HTTP 200 OKResponse field changes
After a successful archive:statuschanges from"active"to"archived"- A new
archived_atfield records the archive time updated_atis refreshed to the archive operation time
Errors
| HTTP | Type | Trigger |
|---|---|---|
| 401 | TOKEN_INVALID | Missing or invalid authentication token |
| 404 | not_found_error | Vault does not exist or has been deleted |