Method: providers.deliveryVehicles.patch
Ghi dữ liệu DeliveryVehicle
đã cập nhật vào Fleet Engine và gán Tasks
cho DeliveryVehicle
. Bạn không thể cập nhật tên của DeliveryVehicle
. Bạn có thể cập nhật remainingVehicleJourneySegments
, nhưng tệp này phải chứa tất cả VehicleJourneySegment
để được duy trì trên DeliveryVehicle
. Các taskId
được truy xuất từ remainingVehicleJourneySegments
và Tasks
tương ứng của chúng sẽ được gán cho DeliveryVehicle
nếu chúng chưa được gán.
Yêu cầu HTTP
PATCH https://fleetengine.googleapis.com/v1/{deliveryVehicle.name=providers/*/deliveryVehicles/*}
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Thông số |
deliveryVehicle.name |
string
Tên riêng biệt của Xe giao hàng này. Định dạng là providers/{provider}/deliveryVehicles/{vehicle} .
|
Tham số truy vấn
Thông số |
header |
object (DeliveryRequestHeader )
Không bắt buộc. Tiêu đề yêu cầu API phân phối chuẩn.
|
updateMask |
string (FieldMask format)
Bắt buộc. Mặt nạ trường cho biết trường DeliveryVehicle nào cần cập nhật. Xin lưu ý rằng updateMask phải chứa ít nhất một trường. Đây là danh sách tên trường đủ điều kiện được phân tách bằng dấu phẩy. Ví dụ: "remainingVehicleJourneySegments"
|
Nội dung yêu cầu
Nội dung yêu cầu chứa một bản sao của DeliveryVehicle
.
Nội dung phản hồi
Nếu thành công, nội dung phản hồi sẽ chứa một phiên bản của DeliveryVehicle
.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2024-11-08 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2024-11-08 UTC."],[[["Updates `DeliveryVehicle` data and assigns `Tasks` in Fleet Engine, requiring all `VehicleJourneySegment`s for persistence."],["Supports updating `remainingVehicleJourneySegments` and assigns corresponding `Tasks` retrieved from it."],["Uses the `PATCH` method with a URL containing the `DeliveryVehicle` name for identification."],["Requires a `header` for Delivery API requests and `updateMask` specifying fields to update."],["Provides a response containing the updated `DeliveryVehicle` instance upon successful completion."]]],["This describes updating `DeliveryVehicle` data within Fleet Engine using a PATCH request. The request targets a specific vehicle via its unique name in the URL. It updates fields defined by the `updateMask`, which is required. The `remainingVehicleJourneySegments` can be updated, including all segments. Corresponding `Tasks` are assigned to the vehicle if not already assigned. The request body contains updated `DeliveryVehicle` data, and the response body returns the updated `DeliveryVehicle` if the update is successful. The vehicle name cannot be updated.\n"]]