Assigns a vehicle to the reservation, replacing the vehicle assigned before, if any.Rules
The reservation must be open, or pending / pending-reserved when your settings allow assigning vehicles to pending reservations.
The vehicle must be one of GET /car-rental/reservations/{reservation_id}/available-vehicles; otherwise a business error is returned.
The reservation is looked up by its numeric ID; an unknown ID returns 404. An unknown vehicle_id also returns 404.
Request
Authorization
Path Params
Header Params
Responses
🟢200OK
application/json
The reservation overview with its vehicle assignments, or a business error. HTTP 200 is also used for failures: always check success. When it is false, the body is an ErrorBusinessRule (status_code 410) or an ErrorUnauthorized (status_code 401 or 403).
Bodyapplication/json
Example
{"success":false,"status_code":410,"errors":{"message":"This Vehicle cannot be assigned to this Reservation","error_message":"This Vehicle cannot be assigned to this Reservation"},"data":[]}