Skip to main content

Set Conversation Custom Attributes

POST 

/accounts/:account_id/conversations/:conversation_id/custom_attributes

Replaces the conversation's custom attributes with the given object.

warning

This call overwrites the conversation's custom_attributes: keys you leave out are removed, so send the full object.

SettingValue
MethodPOST
Path/api/v1/accounts/{account_id}/conversations/{conversation_id}/custom_attributes
AuthorizationUser token or agent-bot token.

Permissions:

Path parameters

NameTypeRequiredDescription
account_idintegerYesAccount ID.
conversation_idintegerYesConversation display ID.

Body parameters (JSON)

NameTypeRequiredDescription
custom_attributesobjectYesKey/value pairs. Use the keys of conversation custom attributes defined in Settings → Custom attributes so they show in the dashboard.

Example request

curl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/custom_attributes' \
-H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \
-H 'Content-Type: application/json' \
-d '{ "custom_attributes": { "order_id": "A-1001", "items_count": 2 } }'

Example response (200 OK)

{
"custom_attributes": {
"order_id": "A-1001",
"items_count": 2
}
}

Remarks​

Request​

Responses​

The conversation's custom attributes after the change.