POST /api/v1/cloud/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
The response is a Vault object with the same fields as Get a vault. After a successful archive:archived_atrecords the archive timeupdated_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 is not accessible |
Related
Authenticate with vaults
Store and inject secrets safely into agent sessions.