API reference · API
Modify a memory space
POST/v1/memory_spaces/{id}API key
name, user and metadata; PATCH does the same.
Parameters
| Field | Type | What it is |
|---|---|---|
| id (path)required | string |
Request body
application/json, optional
| Field | Type | What it is |
|---|---|---|
| name | string or null | |
| user | string or null | |
| metadata | object or null |
Example
{
"name": "string",
"user": "string",
"metadata": {}
}Answer 200
The space.
| Field | Type | What it is |
|---|---|---|
| id | string | msp_ and 24 hex digits. |
| object | "memory_space" | |
| name | string | |
| user | string or null | |
| agent_id | integer or null | Set on an agent's space. |
| default | boolean | |
| metadata | object | |
| memory_count | integer | |
| embedding_model | string | |
| embedding_dimensions | integer or null | |
| created_at | integer | |
| updated_at | integer |
Errors
- 400OpenAI shaped error.
- 401OpenAI shaped error.
- 404OpenAI shaped error.
Every error answers in one shape, with its type, code and the field it names. The whole list is in the docs' Errors section.