Skip to main content

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/memory_stores/{memory_store_id}/archive Archives an active Memory Store. After archiving, the status becomes "archived".

Path parameters

ParameterTypeRequiredDescription
memory_store_idstringYesMemory Store ID with the memstore_ prefix

Headers

HeaderRequiredDescription
AuthorizationYesBearer $QODER_PAT
Content-TypeYesapplication/json

Example request

curl -X POST "https://openapi.qoder.sh/api/v1/cloud/memory_stores/memstore_019e3bb8d50674d9b082b73709c29c87/archive" \
  -H "Authorization: Bearer $QODER_PAT" \
  -H "Content-Type: application/json"

Example response

HTTP 200 OK Returns the updated MemoryStore object with status set to "archived".
{
  "id": "memstore_019e3bb8d50674d9b082b73709c29c87",
  "type": "memory_store",
  "name": "doc-test-store",
  "description": "Test store",
  "status": "archived",
  "entry_count": 0,
  "total_size": 0,
  "metadata": {},
  "archived_at": "2026-05-18T15:34:00.007987Z",
  "created_at": "2026-05-18T15:33:49.449264Z",
  "updated_at": "2026-05-18T15:34:00.007987Z"
}

Response fields

FieldTypeDescription
idstringUnique identifier
typestringAlways "memory_store"
namestringMemory store name
descriptionstringMemory store description
statusstring"archived" after archiving
entry_countint64Number of memory entries
total_sizeint64Total storage size in bytes
metadataobjectCustom metadata
archived_atstringArchive time (ISO 8601)
created_atstringCreation time (ISO 8601)
updated_atstringLast update time (ISO 8601)

Errors

HTTPTypeTrigger
401TOKEN_INVALIDMissing or invalid authentication token
404not_found_errorMemory Store with the given ID does not exist

Notes

  • Archiving sets the archived_at timestamp.
  • After archiving, status becomes "archived".
  • An archived store can still be permanently deleted via DELETE.
  • No request body is required.
See Errors for the full error envelope.