API reference

API reference · API

Modify a memory space

PATCH/v1/memory_spaces/{id}API key

Parameters

Path and query parameters
FieldTypeWhat it is
id (path)requiredstring

Request body

application/json, optional

Request body fields
FieldTypeWhat it is
namestring or null
userstring or null
metadataobject or null

Example

{
  "name": "string",
  "user": "string",
  "metadata": {}
}

Answer 200

The space.

Fields of the 200 answer
FieldTypeWhat it is
idstringmsp_ and 24 hex digits.
object"memory_space"
namestring
userstring or null
agent_idinteger or nullSet on an agent's space.
defaultboolean
metadataobject
memory_countinteger
embedding_modelstring
embedding_dimensionsinteger or null
created_atinteger
updated_atinteger

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.

Antimatter