> ## 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.

# Archive a memory store

> Archive a memory store.

`POST /api/v1/cloud/memory_stores/{memory_store_id}/archive`

Archives a memory store. Archived stores are excluded from list results by default.

## Headers

| Header          | Required | Description    |
| --------------- | -------- | -------------- |
| `Authorization` | Yes      | `Bearer <PAT>` |

## Path parameters

| Parameter         | Description                   |
| ----------------- | ----------------------------- |
| `memory_store_id` | The store ID (`memstore_...`) |

## Example request

```bash theme={null}
curl -X POST "https://api.qoder.com/api/v1/cloud/memory_stores/memstore_019e5cdb9c3f71c3b6505eba937a40b4/archive" \
  -H "Authorization: Bearer $QODER_PAT"
```

## Response

Returns the archived [Memory Store object](#memory-store-object) with `archived_at` set.
