This method is used for closing conversations.
POST https://api.dashly.app/conversations/{id}/close
ID of the conversation should be used as {id}.
Authentification parameters. id_as_string parameter.
| Parameter | Type | Description |
|---|---|---|
from_admin |
ID/default_admin |
ID of admin who closes the conversation or default_admin to close as default admin. |
random_id |
Optional[integer] | random integer to validate created message with RTS message. Default: 0 |
If the conversation is already assigned to this admin, the answer with 200 status will be returned.
Use from_admin to control the admin who closes the conversation.
In case new message was created, data field will contain the wollowing:
id: ID - created assignment message identificatorpart_group: ID - identificator of conversation part, owning created messageExample:
{
"data": {
"id": 123,
"part_group": 345
},
"meta": {
"status": 200
}
}
Close conversation with ID=716 as admin with ID=912:
curl -X POST \
-H "Authorization: Token XXX" \
--data-urlencode "from_admin=912" \
"https://api.dashly.app/conversations/716/close"