POST /v1/memory_stores
Creates a new Memory Store.
Headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer $QODER_PAT |
Content-Type | Yes | application/json |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Memory store name (duplicates allowed) |
description | string | Yes | Memory store description. Cannot be an empty string; omitting this field returns 400 Field 'description' is required. |
Example request
Example response
HTTP 201 Created Returns the created MemoryStore object.Response fields
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier with the memstore_ prefix |
type | string | Always "memory_store" |
name | string | Memory store name |
description | string | Memory store description |
status | string | Status: "active", "archived", or "deleted" |
entry_count | int64 | Number of memory entries |
total_size | int64 | Total storage size in bytes |
metadata | object | Custom metadata |
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 |
Notes
- Duplicate store names are allowed and do not conflict.
- A new store starts in
"active"status. entry_countandtotal_sizestart at 0.