Archives a memory store. Archiving is irreversible: the store can no longer be written or bound to new sessions, and existing session mounts become read-only. Repeated calls are idempotent.
Prerequisites
Endpoint and authentication configured. For details, see Overview and authentication.
Endpoint
POST /memory_stores/{memory_store_id}/archive
Path parametersmemory_store_idstring (必选)Memory store ID | Request example |
Response fieldsidstringMemory store ID, format memstore_xxxtype stringAlways memory_storename stringMemory store name, 1-255 charactersdescription stringPurpose description; empty string when not setmetadata objectBusiness-defined custom key-value metadataarchived_at string | nullArchive time; omitted or null when not archivedcreated_at stringCreation time, ISO 8601 UTCupdated_at stringLast update time, ISO 8601 UTC | Response |
Error codes
| HTTP status | Error code | Description |
|---|---|---|
| 401 | InvalidApiKey | API key missing, invalid, or expired |
| 403 | permission_error | Insufficient identity or resource access permissions |
| 404 | not_found_error | Resource does not exist or does not belong to the current workspace |