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
| Parameter | Type | Required | Description |
|---|
memory_store_id | string | Yes | Memory Store ID with the memstore_ prefix |
| Header | Required | Description |
|---|
Authorization | Yes | Bearer $QODER_PAT |
Content-Type | Yes | application/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
| Field | Type | Description |
|---|
id | string | Unique identifier |
type | string | Always "memory_store" |
name | string | Memory store name |
description | string | Memory store description |
status | string | "archived" after archiving |
entry_count | int64 | Number of memory entries |
total_size | int64 | Total storage size in bytes |
metadata | object | Custom metadata |
archived_at | string | Archive time (ISO 8601) |
created_at | string | Creation time (ISO 8601) |
updated_at | string | Last update time (ISO 8601) |
Errors
| HTTP | Type | Trigger |
|---|
| 401 | TOKEN_INVALID | Missing or invalid authentication token |
| 404 | not_found_error | Memory 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.