POST /chat/chatrooms/{chatroom}/ambassadors/{ambassador}/read

Headers

  • X-Popsell-Brand integer Required

    The id of the target brand

Path parameters

  • chatroom integer Required

    The chatroom id

  • ambassador integer Required

    The ambassador id

Responses

  • 200 application/json

    Returns the last message read

  • 403

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

  • 404

    Not found - The ambassador does not exist

POST /chat/chatrooms/{chatroom}/ambassadors/{ambassador}/read
curl \
 --request POST 'https://domain.tld/api/v2/chat/chatrooms/{chatroom}/ambassadors/{ambassador}/read' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "X-Popsell-Brand: 3"