Motor Pool Reservations
Update Motor Pool Reservation
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, or completed: the same fields as approved, except vehicle_id can 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.
patch/motor_pool_reservations/{id}
Request
- Base URLhttps://secure.fleetio.com/api
- AuthAPI key in header Authorization and API key in header Account-Token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring required
The id of the relevant record
Request body
Example request
{
"pick_up_at": "2025-07-06T20:53:02-05:00",
"drop_off_at": "2025-07-06T20:53:02-05:00"
}Response
OK
Example response
{
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"pick_up_at": "2025-07-06T20:53:02-05:00",
"drop_off_at": "2025-07-06T20:53:02-05:00",
"approved_at": "2025-07-06T20:53:02-05:00",
"checked_out_at": "2025-07-06T20:53:02-05:00",
"returned_at": "2025-07-06T20:53:02-05:00",
"completed_at": "2025-07-06T20:53:02-05:00",
"canceled_at": "2025-07-06T20:53:02-05:00",
"canceled_reason": "User requested the cancelation.",
"denied_at": "2025-07-06T20:53:02-05:00",
"denied_reason": "Changed plans.",
"vehicle_types": [
{
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00"
}
],
"motor_pool": {
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00"
},
"vehicle_assignment": {
"started_at": "2023-03-14T13:46:27-06:00",
"ended_at": "2023-03-14T13:46:27-06:00"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.