POST /v1/memory_stores/{memory_store_id}/archive
Archives an active Memory Store and returns the updated Memory Store object.
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
memory_store_id | string | Yes | Memory Store ID with the memstore_ prefix |
Headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer $QODER_PAT |
Example request
Example response
HTTP 200 OKResponse fields
| Field | Type | Description |
|---|---|---|
id | string | Memory Store ID with the memstore_ prefix |
type | string | Always "memory_store" |
name | string | Store name |
description | string | Store description |
status | string | archived after the operation succeeds |
entry_count | integer | Number of active memory entries |
total_size | integer | Total size in bytes of active memory entries |
metadata | Metadata object | Custom metadata |
archived_at | string | UTC archive time |
created_at | string | UTC creation time |
updated_at | string | UTC last update time |
Notes
No request body is required. Once archived, a store can still be read, but entries cannot be created or updated in it.Errors
| HTTP | Type | Trigger |
|---|---|---|
| 401 | authentication_error | Missing or invalid authentication token |
| 404 | not_found_error | Memory Store with the given ID does not exist |
| 409 | conflict_error | Memory Store is already archived |
Related
Build persistent memory
Give your agent persistent memory across sessions.