Memories

Update a memory

PATCH /v1/memories/{id}
Permission
write:memories
Tokens
API key, CLI user token, Session token

Replace the content of a memory. Send if_sha256 to change it only if nothing has changed it since you read it. A memory that is a file in GitHub returns 409 and is changed by editing the file.

Path parameters

idstringrequired

Query parameters

if_sha256string

Make the change only if the memory's `content_sha256` still equals this value.

{
"content": str
}

Request

contentstring

The content that replaces the memory's current content.

Response

memoryMemoryrequired

The memory.

On this page

No Headings
Schedule a demo
For HumansFor Agents