# Rate a chatroom **POST /chat/chatrooms/{chatroom}/ratings** ## Servers - https://domain.tld/api/v2: https://domain.tld/api/v2 () ## Authentication methods - Bearer token ## Parameters #### Path parameters - **chatroom** (integer) The chatroom id ## Body parameters Content-type: application/json - **id_user_rated** (integer) - **id_user_rater** (integer) ## Responses ### 201: Return the created message with rating #### Body Parameters: application/json (object) - **id_message** (integer) - **date_insert** (string(date-time)) - **author** (object) - **content** (string) - **type_message** (integer) 0: text, 1: picture, 2: rating, 3: product, 4: connection, 5: request, 6: unavailable, 7: video, 8: email, 9: missed - **status_moderation** (integer) - **rating** (object) Only for type_message = 2 ### 401: Unauthorized. #### Body Parameters: application/json (object) - **message** (string) ### 403: Forbidden - You don't have permission to access this route ### 422: Unprocessable Content #### Body Parameters: application/json (object) - **message** (string) Error message. - **errors** (object) [Powered by Bump.sh](https://bump.sh)