AI-generated Key Takeaways
-
Updates
DeliveryVehicledata and assignsTasksin Fleet Engine, requiring allVehicleJourneySegments for persistence. -
Supports updating
remainingVehicleJourneySegmentsand assigns correspondingTasksretrieved from it. -
Uses the
PATCHmethod with a URL containing theDeliveryVehiclename for identification. -
Requires a
headerfor Delivery API requests andupdateMaskspecifying fields to update. -
Provides a response containing the updated
DeliveryVehicleinstance upon successful completion.
Writes updated DeliveryVehicle data to Fleet Engine, and assigns Tasks to the DeliveryVehicle. You cannot update the name of the DeliveryVehicle. You can update remainingVehicleJourneySegments, but it must contain all of the VehicleJourneySegments to be persisted on the DeliveryVehicle. The taskIds are retrieved from remainingVehicleJourneySegments, and their corresponding Tasks are assigned to the DeliveryVehicle if they have not yet been assigned.
HTTP request
PATCH https://fleetengine.googleapis.com/v1/{deliveryVehicle.name=providers/*/deliveryVehicles/*}
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
deliveryVehicle.name |
The unique name of this Delivery Vehicle. The format is |
Query parameters
| Parameters | |
|---|---|
header |
Optional. The standard Delivery API request header. |
updateMask |
Required. A field mask that indicates which This is a comma-separated list of fully qualified names of fields. Example: |
Request body
The request body contains an instance of DeliveryVehicle.
Response body
If successful, the response body contains an instance of DeliveryVehicle.