When updating a Vehicle, the following fields cannot be updated since they are managed by the server:
currentTrips
availableCapacity
currentRouteSegmentVersion
waypointsVersion
The vehicle name also cannot be updated.
If the attributes field is updated, all the vehicle's attributes are replaced with the attributes provided in the request. If you want to update only some attributes, see the vehicles.updateAttributes method. Likewise, the waypoints field can be updated, but must contain all the waypoints currently on the vehicle, and no other waypoints.
HTTP request
PUT https://fleetengine.googleapis.com/v1/{name=providers/*/vehicles/*}
Required. Must be in the format providers/{provider}/vehicles/{vehicle}. The {provider} must be the Project ID (for example, sample-cloud-project) of the Google Cloud Project of which the service account making this call is a member.