Team & Fleet›Replace a technician's vehicles
Replace a technician's vehicles
Overwrites the technician's vehicle list with the provided set of vehicle IDs (the vehicles this technician uses). Sending an empty list clears all. Each vehicle ID must belong to the same business. The list is also embedded as `vehicle_ids` in the technician GET/list response.
Arguments
idstringpathrequired
Technician ID
vehicle_idsarray<string>bodyoptional
Vehicle ids (max 50). Discover via GET /vehicles.
PUT/v1/technicians/{id}/vehicles
curl -X PUT "https://api.crisphive.com/v1/technicians/9b2f6c3e-1a4d-4f0a-8f2e-7c5d1b3a9e01/vehicles" \ -H "Authorization: Bearer chsk_test_4eC8xQ9mZ2pL7Ka0rT" \ -H "Content-Type: application/json" \ -d '{ "vehicle_ids": [ "9b2f6c3e-1a4d-4f0a-8f2e-7c5d1b3a9e01" ] }'
Request body
{
"vehicle_ids": [
]
}
Bearer