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

# Update a memory store

> Update a memory store's name, description, or metadata.

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

Updates a memory store. All fields are optional; omitted fields are preserved.

## Headers

| Header          | Required | Description        |
| --------------- | -------- | ------------------ |
| `Authorization` | Yes      | `Bearer <PAT>`     |
| `Content-Type`  | Yes      | `application/json` |

## Path parameters

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

## Request body

| Field         | Type   | Required | Description                                                                               |
| ------------- | ------ | -------- | ----------------------------------------------------------------------------------------- |
| `name`        | string | No       | New name, 1–255 characters, no control characters                                         |
| `description` | string | No       | New description, up to 1024 characters. Pass empty string to clear                        |
| `metadata`    | object | No       | Metadata patch. Set a key to a string to upsert, or to `null` to delete. Omit to preserve |

## Example request

```bash theme={null}
curl -X POST "https://api.qoder.com/api/v1/cloud/memory_stores/memstore_019e5cdb9c3f71c3b6505eba937a40b4" \
  -H "Authorization: Bearer $QODER_PAT" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "project-alpha-memory-v2",
    "metadata": {"team": null, "env": "production"}
  }'
```

## Response

Returns the updated [Memory Store object](#memory-store-object).
