Skip to Content
Contacts

Replace contact memory

Permissioncontacts:manage-memoryAuthentication
PUT
/contacts/{id}/memory

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.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Use a Voice API key or connected-app OAuth access token. Authentication.

Path Parameters

id*string
Formatuuid

Header Parameters

If-Match?string

Optional strong ETag (or *) from a prior response. A stale tag returns 412 without changing the resource.

Request Body

application/json
  1. body
content*string

Complete 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.

Lengthlength <= 8000

Response Body

Memory replacement result.

application/json
  1. response
content*string
Lengthlength <= 8000
updated_at*|
Formatdate-time
changed*boolean
revision_id*|
Formatuuid
Example Request
curl -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"}