Skip to main content
PATCH/conversations/:id/

Update conversation

You can update a conversation (status, assignment, etc.).

Attributes

Optional unless marked required

idintegerrequired
A unique identifier for the conversation which is given by User automatically.
activebooleanrequired
A flag of a conversation status
assigned_tointeger
ID of the agent group to assign the conversation to.

Request​

curl -X PATCH "https://<your_app_subdomain>.user.com/api/public/conversations/:id/" \
-H "Authorization: Token <your_64_char_api_key>" \
-H "Accept: */*; version=2" \
-H "Content-Type: application/json" \
-d '{
"active": false
}'

Response examples​

{
"id": 1,
"active": true,
"assigned_to": 1
}

Response fields​

Fields returned in the 200 OK response body.

idinteger
A unique identifier for the conversation which is given by User automatically.
activeboolean
A flag of a conversation status
assigned_tointeger
ID of the agent group the conversation is assigned to.
note

Errors that can come from any endpoint (401, 429, 500, 502, 504) are described in HTTP response codes.