Documentation Index
Fetch the complete documentation index at: https://docs.qoder.com/llms.txt
Use this file to discover all available pages before exploring further.
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 |
| Header | Required | Description |
|---|
Authorization | Yes | Bearer $QODER_PAT |
No request body is required.
Example request
curl -X POST https://openapi.qoder.sh/api/v1/cloud/vaults/vault_019e3bb940277f0db05ab74291acf6ef/archive \
-H "Authorization: Bearer $QODER_PAT"
Example response
HTTP 200 OK
{
"id": "vault_019e3bb940277f0db05ab74291acf6ef",
"type": "vault",
"display_name": "my-mcp-vault",
"status": "archived",
"metadata": {},
"archived_at": "2026-05-18T15:34:35.630693Z",
"created_at": "2026-05-18T15:34:16.874877Z",
"updated_at": "2026-05-18T15:34:35.630693Z"
}
Response field changes
After a successful archive:
status changes from "active" to "archived"
- A new
archived_at field records the archive time
updated_at is 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 |
See Errors for the full error envelope.