PATCH /chat/waiting-list/{id_waiting_list}

Headers

  • X-Popsell-Brand integer Required

    The id of the target brand

Path parameters

  • id_waiting_list integer Required

    The waiting list id

application/json

Body Required

  • id_chatroom integer
  • date_handled string(date-time)
  • id_chat_topic integer
  • content string

Responses

  • 200 application/json

    Returns the waiting list

  • 403

    Forbidden - You don't have permission to access this route

  • 404

    Not found - The waiting list does not exist

PATCH /chat/waiting-list/{id_waiting_list}
curl \
 --request PATCH 'https://domain.tld/api/v2/chat/waiting-list/{id_waiting_list}' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --header "X-Popsell-Brand: 3" \
 --data '{"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"
}