context

Update memory context data

This endpoint updates memory context data.

post/api/v1/context/memory/update

Request body

sessionIdstring required

The ID of the memory to update

Response

Memory context updated successfully

successboolean required
memory_idstring required
updated_entriesnumber required

Example response

{
  "success": true,
  "memory_id": "support-thread-TCK-1234",
  "updated_entries": 2
}

Changes

Changed in 4 of the 29 revisions of this API.3113

  • af43a0360c7811See the full diff
    • added the new required request property sessionId

      new-required-request-property

    • removed the request property memoryId

      request-property-removed

  • 510cbb709bed211See the full diff
    • the request property contents became required

      request-property-became-required

    • the request property memoryId became required

      request-property-became-required

    • added the new optional request property contents/items/createdAt

      new-optional-request-property

    • added the new optional request property contents/items/id

      new-optional-request-property

    • added the new optional request property contents/items/metadata

      new-optional-request-property

    • added the new optional request property contents/items/role

      new-optional-request-property

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

      response-media-type-added

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

      response-media-type-added

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

      response-media-type-added

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

      response-media-type-added

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

      response-media-type-added

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

      response-media-type-added

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

      response-media-type-added

    • api operation id updateContextAsMemory was added

      api-operation-id-added

    • endpoint added

      endpoint-added