curl -X PUT https://api.marsai.com/awards/3/7 \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"award_name": "Best Cinematography - Drama"
}'
{
"message": "Award mis à jour",
"updatedAward": {
"id_award": 3,
"award_name": "Best Cinematography - Drama",
"id_movie": 7,
"createdAt": "2026-03-07T10:30:00Z",
"updatedAt": "2026-03-07T12:15:00Z"
}
}
curl -X PUT https://api.marsai.com/awards/3/7 \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"award_name": "Best Cinematography - Drama"
}'
{
"message": "Award mis à jour",
"updatedAward": {
"id_award": 3,
"award_name": "Best Cinematography - Drama",
"id_movie": 7,
"createdAt": "2026-03-07T10:30:00Z",
"updatedAt": "2026-03-07T12:15:00Z"
}
}
curl -X PUT https://api.marsai.com/awards/3/7 \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"award_name": "Best Cinematography - Drama"
}'
{
"message": "Award mis à jour",
"updatedAward": {
"id_award": 3,
"award_name": "Best Cinematography - Drama",
"id_movie": 7,
"createdAt": "2026-03-07T10:30:00Z",
"updatedAt": "2026-03-07T12:15:00Z"
}
}
{
"error": "Award non trouvé"
}