Skip to main content
Memory Stores

Archive a memory store

POST /api/v1/cloud/memory_stores/{memory_store_id}/archive Archives an active Memory Store and returns the updated Memory Store object.

Headers

HeaderRequiredDescription
AuthorizationYesBearer <PAT or SAT>

Path parameters

ParameterTypeRequiredDescription
memory_store_idstringYesMemory Store ID with the memstore_ prefix

Example request

curl -X POST "https://api.qoder.com.cn/api/v1/cloud/memory_stores/memstore_019e3bb8d50674d9b082b73709c29c87/archive" \
  -H "Authorization: Bearer $QODER_ACCESS_TOKEN"

Example response

HTTP 200 OK
{
  "id": "memstore_019e3bb8d50674d9b082b73709c29c87",
  "created_at": "2026-05-18T15:33:49.449Z",
  "name": "doc-test-store",
  "type": "memory_store",
  "updated_at": "2026-05-18T15:34:00.007Z",
  "archived_at": "2026-05-18T15:34:00.007Z",
  "description": "Test store",
  "metadata": {},
  "status": "archived",
  "entry_count": 0,
  "total_size": 0
}

Response

Returns the archived Memory Store object. Its status changes to archived and archived_at is populated.

Notes

No request body is required. After archival, the store remains readable, but memories can no longer be created or updated in it.

Error codes

HTTPtypeTrigger
401authentication_errorMissing or invalid authentication token
404not_found_errorNo Memory Store exists with the specified ID
409invalid_request_errorThe Memory Store is already archived
For the complete error envelope, see Errors.