Skip to main content
PUT
/
awards
/
:id
/
:id_movie
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"
  }
}
This endpoint requires ADMIN authentication.
Updates an existing award and reassigns it to a different movie.

Path Parameters

id
integer
required
The ID of the award to update
id_movie
integer
required
The new movie ID to assign the award to

Body Parameters

award_name
string
Updated award name (max 100 characters)
Only the award_name can be updated in the request body. The movie association is changed via the path parameter.

Response

message
string
Success message: “Award mis à jour”
updatedAward
object
The updated award object with all fields
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 Responses

404 Not Found
Award not found
{
  "error": "Award non trouvé"
}