Update Motor Pool Reservation
PATCH/motor_pool_reservations/:id
Updates an existing Motor Pool Reservation. The fields accepted depend on
the reservation's current status:
requested:motor_pool_id,vehicle_type_ids,reason_for_trip,pick_up_at,drop_off_at,custom_fields.approved:reason_for_trip,vehicle_id,pick_up_at,drop_off_at,custom_fields,motor_pool_reservation_line_items_attributes,vehicle_assignment.checked_out,returned, orcompleted: the same fields asapproved, exceptvehicle_idcan no longer be changed.
Fields outside the current status's set are silently ignored rather than
raising an error. denied and canceled reservations cannot be updated
at all.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 422
- 500
OK
The format or parameters of the request was invalid
Request could not be authenticated
Insufficient permission to perform this operation
The requested resource could not be located
Unprocessable Entity
Something unexpected happened