Skip to main content
PATCH
Update a memory
Changes a memory in place. Use it to correct what an agent learned. The key stays fixed, and the old version stays in the revision history. Related guide: How it works: the gateway injects credentials. Partial; key is immutable. null clears title or description. Every update appends a revision.
Availability: Cloud · Community (self-hosted) · Enterprise (self-hosted)

Authorizations

Authorization
string
header
required

A workspace API key (oc_…) or organization API key (oc_org_…). Workspace-scoped endpoints called with an organization key also need X-Workspace-Id.

Path Parameters

agentId
string
required
memoryId
string
required

Body

application/json
title
string | null
description
string | null
content
string
Maximum string length: 100000

Response

Updated

One memory without its content (the index projection).

id
string
agentId
string
key
string

The agent's own handle for the memory and its file name (memory/<key>.md). Immutable.

title
string | null
description
string | null
lastRevisionSeq
integer
createdAt
string<date-time>
updatedAt
string<date-time>
content
string