PATCH /chat/chatrooms/{chatroom}/ambassadors/{ambassador}/flag

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

application/json

Body

  • flag integer | null

    Flag's value , (1: todo, 2: done)

    Values are 1 or 2.

Responses

  • 200 application/json

    Return success message

    Hide response attribute Show response attribute object
    • message string | null
  • 403

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

  • 404

    Not found - The chatroom does not exist

PATCH /chat/chatrooms/{chatroom}/ambassadors/{ambassador}/flag
curl \
 --request PATCH 'https://domain.tld/api/v2/chat/chatrooms/{chatroom}/ambassadors/{ambassador}/flag' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --header "X-Popsell-Brand: 3" \
 --data '{"flag":1}'
Request examples
# Headers
X-Popsell-Brand: 3

# Payload
{
  "flag": 1
}
Response examples (200)
{
  "message": "Chatroom flagged successfully"
}