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)

Changed on
post/api/memory/edit

Request

  • Base URL
    http://localhost:3013
  • URL
    http://localhost:3013/api/memory/edit
  • Auth
    HTTP bearer

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

    • info

      added the non-success response with the status

    • info

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

    • info

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

    • info

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

    • info

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