Path parameters
-
The rating id
PATCH /chat/ratings/{rating}
curl \
-X PATCH https://domain.tld/api/v2/chat/ratings/{rating} \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"value":5,"content":"bien"}'
Request examples
{
"value": 5,
"content": "bien"
}
Response examples (200)
{
"id_rating": 1,
"date_insert": "2023-10-09T12:12:40.220000Z",
"date_update": "2023-10-09T12:12:40.220000Z",
"date_delete": "2023-10-09T12:12:40.220000Z",
"value": 5,
"content": "bien",
"id_user_rater": 1,
"id_user_rated": 2
}
Response examples (401)
{
"message": "Unauthorized."
}
Response examples (422)
{
"message": "field is required! (and 3 more error)",
"errors": {
"field": [
"Error message details here"
],
"additionalProperty1": [
"Error message details here"
],
"additionalProperty2": [
"Error message details here"
]
}
}