This endpoint requires ADMIN authentication.
Updates an existing vote’s rating or comments.
Path Parameters
The ID of the vote to update
Body Parameters
Updated vote rating (will be parsed as float)
Both parameters are optional. Only provided fields will be updated.
Response
Returns the updated vote object with all fields.
Unique identifier for the vote
ID of the user who cast the vote
ID of the movie being voted on
Number of times the vote has been modified
curl -X PUT https://api.marsai.com/votes/1 \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"note": 9.0,
"comments": "Revised opinion: truly exceptional cinematography"
}'
{
"id_vote": 1,
"id_user": 10,
"id_movie": 5,
"note": 9.0,
"comments": "Revised opinion: truly exceptional cinematography",
"modification_count": 0
}
Error Responses
Vote not found{
"error": "Vote non trouvé"
}