Headers
-
The id of the target brand
Path parameters
-
The waiting list id
Body Required
-
id_chatroom integer
-
date_handled string(date-time)
-
id_chat_topic integer
-
content string
PATCH /chat/waiting-list/{id_waiting_list}
curl \
-X PATCH https://domain.tld/api/v2/chat/waiting-list/{id_waiting_list} \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-H "X-Popsell-Brand: 3" \
-d '{"id_chatroom":1,"date_handled":"2020-01-01T00:00:00Z","id_chat_topic":1,"content":"Help me"}'
Request examples
# Headers
X-Popsell-Brand: 3
# Payload
{
"id_chatroom": 1,
"date_handled": "2020-01-01T00:00:00Z",
"id_chat_topic": 1,
"content": "Help me"
}
Response examples (200)
{
"id_ambassador": 1,
"id_user": 1,
"id_brand": 1,
"id_chat_topic": 1,
"content": "Help me",
"id_chatroom": 1,
"date_handled": "2020-01-01T00:00:00Z",
"date_update": "2020-01-01T00:00:00Z",
"date_delete": "2020-01-01T00:00:00Z",
"source": 1,
"id_transferrer": 1,
"id_chatroom_transferred": 1
}
Response examples (401)
{
"message": "Unauthorized."
}