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
Basic Auth
Send your HTTP requests with an
Authorization
header that contains the word Basic followed by a space and a base64-encoded string username:password
Example:
Authorization: Basic *****************
or
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":[]}