Agents
Replace a memory file
Replace one memory file (?path defaults to MEMORY.md) on the owning daemon; returns the written size/mtime. ifMatchMtime (optional) is optimistic concurrency — a 409 if the file changed under you. Requires edit permission. 503 when unplaced or the daemon is offline. 503 also when the memory home of the agent is not reachable right now; code says why.
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
orgId*string
id*string
Query Parameters
channelKey?string
Match
^[A-Za-z0-9._-]+$Length
1 <= length <= 120path?string
Length
1 <= lengthRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/v1/orgs/string/agents/string/memory/file" \ -H "Content-Type: application/json" \ -d '{ "content": "string" }'{ "path": "string", "size": 0, "mtime": "string"}