Headers

  • X-Popsell-Brand integer Required

    The id of the target brand

Path parameters

  • id integer Required

    The chatroom id

application/json

Body

  • established_dialogue string(date-time)

Responses

  • 200 application/json

    Return the updated chatroom

  • 403

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

  • 404

    Not found - The ambassador does not exist

PATCH /chat/chatrooms/{id}
curl \
 --request PATCH 'https://domain.tld/api/v2/chat/chatrooms/{id}' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --header "X-Popsell-Brand: 3" \
 --data '{"established_dialogue":"2023-10-06 13:41:09.123"}'
Request examples
# Headers
X-Popsell-Brand: 3

# Payload
{
  "established_dialogue": "2023-10-06 13:41:09.123"
}
Response examples (200)
[]