# Update a rating **PATCH /chat/ratings/{rating}** ## Servers - https://domain.tld/api/v2: https://domain.tld/api/v2 () ## Authentication methods - Bearer token ## Parameters #### Path parameters - **rating** (integer) The rating id ## Body parameters Content-type: application/json - **value** (integer) - **content** (string) ## Responses ### 200: Return the updated rating #### Body Parameters: application/json (object) - **id_rating** (integer) - **date_insert** (string(date-time)) - **date_update** (string(date-time)) - **date_delete** (string(date-time)) - **value** (integer) - **content** (string) - **id_user_rater** (integer) - **id_user_rated** (integer) ### 401: Unauthorized. #### Body Parameters: application/json (object) - **message** (string) ### 403: Forbidden - You don't have permission to access this route ### 404: Not found - The rating does not exist ### 422: Unprocessable Content #### Body Parameters: application/json (object) - **message** (string) Error message. - **errors** (object) [Powered by Bump.sh](https://bump.sh)