Skip to content

Patch conversation custom attributes

Request

Patch custom attributes of a conversation

Security
ApiKeyAuth(Required scopes: conversation.custom_attribute)
Path
conversationIdinteger, (int64)required
Bodyapplication/jsonrequired

The custom attributes of an conversation to be patched. This should map the custom attribute id to the desired attribute value. Format: Map[UUID, Option[AttributeValue].

property name*Array of strings or stringadditional property
One of:

AttributeValue values: String[] if the type of the custom attribute is Select or String if the type of the custom attribute is Text

Array of strings
PATCH
/beta/conversations/{conversationId}/custom-attributes
curl -i -X PATCH \
  'https://dev.dixa.io/beta/conversations/{conversationId}/custom-attributes' \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -d '{
    "2f5515b6-7e98-4f4d-9010-bfd2a27d4f35": "012345",
    "e14708a6-eed9-495c-9d88-c72331e9e247": [
      "str1",
      "str2"
    ]
  }'

Responses

The patched conversation attributes

Bodyapplication/json
dataArray of objects(CustomAttribute)
Response
{ "data": [ {}, {} ] }