Skip to main content

Archive Memory Store

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 parameters

memory_store_id string (必选)Memory store ID

Request example

curl -X POST "$AGENTSTUDIO_URL/memory_stores/memstore_xxx/archive" \
  -H "Authorization: Bearer $DASHSCOPE_API_KEY"

Response fields

id stringMemory 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

{
  "id": "memstore_xxx",
  "type": "memory_store",
  "name": "Project Knowledge",
  "description": "Project conventions, decisions, and troubleshooting notes",
  "metadata": {
    "team": "data"
  },
  "created_at": "2026-09-17T08:00:00Z",
  "updated_at": "2026-09-17T09:00:00Z",
  "archived_at": "2026-09-17T09:00:00Z"
}

Error codes

HTTP statusError codeDescription
401InvalidApiKeyAPI key missing, invalid, or expired
403permission_errorInsufficient identity or resource access permissions
404not_found_errorResource does not exist or does not belong to the current workspace