POST /chat/chatrooms/{chatroom}/messages

Path parameters

  • chatroom integer Required

    The chatroom id

application/json

Body

  • id_ambassador integer Required

    Ambassador's ID.

  • content string

    Message's content.

  • type_message integer Required

    Message's type.

    Values are 0, 1, 3, 4, 5, 6, 7, 8, or 9.

Responses

  • 201 application/json

    Return the created message

  • 403

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

POST /chat/chatrooms/{chatroom}/messages
curl \
 --request POST 'https://domain.tld/api/v2/chat/chatrooms/{chatroom}/messages' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"id_ambassador":42,"content":"string","type_message":0}'
Request examples
{
  "id_ambassador": 42,
  "content": "string",
  "type_message": 0
}