Skip to main content
Version: 2.0

Update agent memory

PATCH 

/v2/agents/:agent_key/memory

Replace the agent's _learned_memory skill content. The submitted content fully replaces the previous memory — the API does not append. Each successful update increments memory_version and records a full snapshot in the memory history.

To guard against concurrent updates, pass expected_version equal to the memory_version you last read. If it no longer matches the current version, the update is rejected with 409 Conflict; re-read the memory and retry. Omit expected_version to update unconditionally.

Request

Responses

The agent's memory after the update.