Memory

Update a long-term memory

Edit a memory's content, confidence, metadata, reason, or evidence. Set disputed to flag a fact as wrong, restore to bring an archived one back, or preferred to make it win over conflicting memories. Provenance and trust fields belong to the server and can't be set here.

API key scopes: memory:write. You also need an Idempotency-Key header.

patch/api/memory/{id}

Request

  • Base URL: https://api.setluca.com
  • URL: https://api.setluca.com/api/memory/{id}
  • Auth: one of:
    • API key in cookie luca.session_token
    • API key in header x-api-key
    • HTTP bearer

Path parameters

idstring uuid required

Identifier of the memory entry this operation targets.

Headers

Luca-API-Version'1'

The major version of the API this client was built against. Omit it and the request is served by the current major version. Any other value is refused with 400 unsupported_api_version.

Request body

contentstring
sourcestring
sourceRefIdstring nullable
confidencenumber
metadataobject
createdByType'coach' | 'agent' | 'system'
createdByIdstring nullable
reasonstring nullable
evidenceobject
trustLevel'manual' | 'trusted_pipeline' | 'inferred' | 'disputed'
restoreboolean
disputedboolean
disputedReasonstring nullable
preferredboolean
expectedUpdatedAtstring date-time

Response

ok

idstring uuid required
contentstring required
sourcestring required
sourceRefIdstring nullable required
confidencenumber required
metadataobject required
createdByType'coach' | 'agent' | 'system' required
createdByIdstring nullable required
reasonstring nullable required
evidenceobject required
trustLevel'manual' | 'trusted_pipeline' | 'inferred' | 'disputed' required
supersedesMemoryIdstring uuid nullable required
supersededAtstring nullable required
disputedAtstring nullable required
disputedReasonstring nullable required
leadIdstring uuid nullable required
archivedAtstring nullable required
factOrigin'profile_text' | 'coach_edit' | 'lead_message' | 'null' nullable required
sourceFieldstring nullable required
createdAtstring required
updatedAtstring required

Changes

No recorded changes to this operation across all 1 revision of this API.