Skip to navigation

Edit a team member's memory

View as Markdown

Edit a member’s memory. Follows the system’s revise-not-mutate model: a new memory is inserted and the old one is superseded (retired, kept for history), so agent memory stays append-only. Returns the new memory id and the superseded id.

Authentication

X-API-Keystring

API key supplied via the X-API-Key header. Takes precedence over bearerApiKey when both are present. Listed only on operations that actually accept a key.

OR
AuthorizationBearer

Same organization API key supplied as a Bearer token in the Authorization header (Authorization: Bearer <key>). Compatible with OpenAI-SDK-standard clients. Accepted wherever this scheme is listed on the operation — not every endpoint; if both X-API-Key and Authorization: Bearer are present, X-API-Key wins.

OR
AuthorizationBearer

Supabase session JWT from a signed-in browser session, supplied as Authorization: Bearer <jwt>. This is what the web app sends. It shares the Authorization header with bearerApiKey; the server distinguishes them by the ela_ prefix on API keys.

Path parameters

teamIdstringRequired
agentIdstringRequired
memoryIdstringRequired

Request

This endpoint expects an object.
orgSlugstringRequired
contentstringRequired1-500 characters
visibilityenumRequired
Allowed values:

Response

OK
any
OR
any