POST /chat/chatrooms/{chatroom}/ratings

Path parameters

  • chatroom integer Required

    The chatroom id

application/json

Body

  • id_user_rated integer
  • id_user_rater integer

Responses

  • 201 application/json

    Return the created message with rating

  • 403

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

POST /chat/chatrooms/{chatroom}/ratings
curl \
 --request POST 'https://domain.tld/api/v2/chat/chatrooms/{chatroom}/ratings' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"id_user_rated":5,"id_user_rater":2}'
Request examples
{
  "id_user_rated": 5,
  "id_user_rater": 2
}
Response examples (201)
{}