Memory

Edit a single memory in place while preserving its ID and usefulness posterior. Modes: 'replace' overwrites entire content; 'exact' performs surgical find-and-replace of oldString→newString (fails if missing or ambiguous)

post/api/memory/edit

Request body

memoryIdstring uuid
keystring
scope'agent' | 'swarm'
mode'replace' | 'exact'
contentstring
oldStringstring
newStringstring
intentstring required
expectedVersioninteger

Response

Memory edited

changedboolean required
previousVersionnumber required
versionnumber required
contentHashstring required

Changes

Changed in 1 of the 104 revisions of this API.4

    • added the media type application/json for the response with the status

      response-media-type-added

    • added the media type application/json for the response with the status

      response-media-type-added

    • added the media type application/json for the response with the status

      response-media-type-added

    • added the media type application/json for the response with the status

      response-media-type-added