Contacts
Replace contact memory
Permission
contacts:manage-memoryAuthenticationPUT
Replaces the complete durable memory document after trimming surrounding whitespace. A changed write creates one manual revision; an identical write is an idempotent no-op with changed=false and revision_id=null. Use If-Match to reject a stale replacement.
bearerAuthheader
AuthorizationBearer <token>Use a Voice API key or connected-app OAuth access token. Authentication.
id*stringFormat
uuidIf-Match?stringOptional strong ETag (or *) from a prior response. A stale tag returns 412 without changing the resource.
application/json- body
content*stringComplete replacement document. Surrounding whitespace is trimmed; multiline text and tabs are allowed, while NUL and unsupported control characters are rejected. An empty string clears memory.
Length
length <= 8000Memory replacement result.
application/json- response
content*stringLength
length <= 8000updated_at*|Format
date-timechanged*booleanrevision_id*|Format
uuidcurl -X PUT 'https://api.kejue.co/v1/contacts/497f6eca-6276-4993-bfeb-53cbbbba6f08/memory' \ -H 'Content-Type: application/json' \ -d '{ "content": "string"}'Example Response
{ "content": "string", "updated_at": "2019-08-24T14:15:22Z", "changed": true, "revision_id": "f8f7f022-982b-4bef-ba7d-4bb808fdbe2a"}