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.
PUT /v1/memory_stores/{memory_store_id}/memories/{memory_id}
Updates the content of the specified memory entry. Each update automatically increments the version number and produces a version record.
Path parameters
| Parameter | Type | Required | Description |
|---|
memory_store_id | string | Yes | Memory Store ID with the memstore_ prefix |
memory_id | string | Yes | Memory entry ID with the mem_ prefix |
| Header | Required | Description |
|---|
Authorization | Yes | Bearer $QODER_PAT |
Content-Type | Yes | application/json |
Request body
| Field | Type | Required | Description |
|---|
content | string | Yes | New memory content |
Example request
curl -X PUT "https://openapi.qoder.sh/api/v1/cloud/memory_stores/memstore_xxx/memories/mem_xxx" \
-H "Authorization: Bearer $QODER_PAT" \
-H "Content-Type: application/json" \
-d '{
"content": "Updated content..."
}'
Example response
HTTP 200 OK
Returns the updated MemoryEntry object.
{
"id": "mem_019e3bb965a671fca51bde1cf8d87de0",
"type": "memory",
"store_id": "memstore_019e3bb93b7074f9a5130d39ddcca90f",
"path": "test/note.md",
"content": "Hello world - updated content",
"size": 29,
"content_sha256": "663ab3dd969f51ffd6565202a6a5006db76a96a09a3506962f8d442df8f9bd76",
"version": 2,
"metadata": {},
"created_at": "2026-05-18T15:34:26.494349Z",
"updated_at": "2026-05-18T15:34:37.780345Z"
}
Response fields
| Field | Type | Description |
|---|
id | string | Unique identifier |
type | string | Always "memory" |
store_id | string | Owning Memory Store ID |
path | string | Relative path (unchanged) |
content | string | Updated content |
size | int64 | New content size in bytes |
content_sha256 | string | SHA-256 hash of the new content |
version | int64 | Incremented version number |
metadata | object | Custom metadata |
created_at | string | Original creation time (unchanged) |
updated_at | string | Update time (ISO 8601) |
Errors
| HTTP | Type | Trigger |
|---|
| 401 | TOKEN_INVALID | Missing or invalid authentication token |
| 404 | not_found_error | Memory Store or memory entry does not exist |
Notes
- Each update increments
version automatically (e.g., 1 → 2).
created_at is unchanged; updated_at is set to the current time.
size and content_sha256 are recomputed from the new content.
- Each update produces a version record with
action: "updated".
path cannot be changed during update.
See Errors for the full error envelope.