Method: providers.deliveryVehicles.patch
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
यह फ़्लीट इंजन में, DeliveryVehicle
का अपडेट किया गया डेटा लिखता है और DeliveryVehicle
को Tasks
असाइन करता है. आप DeliveryVehicle
का नाम अपडेट नहीं कर सकते. आप remainingVehicleJourneySegments
को अपडेट कर सकते हैं, लेकिन इसमें DeliveryVehicle
पर बने रहने के लिए सभी VehicleJourneySegment
शामिल होने चाहिए. taskId
को remainingVehicleJourneySegments
से वापस पाया जाता है. साथ ही, अगर Tasks
को अब तक असाइन नहीं किया गया है, तो उन्हें DeliveryVehicle
को असाइन किया जाता है.
एचटीटीपी अनुरोध
PATCH https://fleetengine.googleapis.com/v1/{deliveryVehicle.name=providers/*/deliveryVehicles/*}
यूआरएल में gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल किया गया है.
पाथ पैरामीटर
पैरामीटर |
deliveryVehicle.name |
string
डिलीवरी के लिए इस्तेमाल होने वाले इस वाहन का यूनीक नाम. इसका फ़ॉर्मैट providers/{provider}/deliveryVehicles/{vehicle} है.
|
क्वेरी पैरामीटर
पैरामीटर |
header |
object (DeliveryRequestHeader )
ज़रूरी नहीं. Delivery API के अनुरोध का स्टैंडर्ड हेडर.
|
updateMask |
string (FieldMask format)
ज़रूरी है. फ़ील्ड मास्क, जो यह बताता है कि किन DeliveryVehicle फ़ील्ड को अपडेट करना है. ध्यान दें कि updateMask में कम से कम एक फ़ील्ड होना चाहिए. यह फ़ील्ड के पूरी तरह क्वालिफ़ाइड नाम की सूची है, जिसे कॉमा लगाकर अलग किया गया है. उदाहरण: "remainingVehicleJourneySegments" .
|
अनुरोध का मुख्य भाग
अनुरोध के मुख्य भाग में DeliveryVehicle
का उदाहरण है.
जवाब का मुख्य भाग
कामयाब रहने पर, जवाब के मुख्य हिस्से में DeliveryVehicle
का एक इंस्टेंस शामिल किया जाता है.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-11-08 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 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"]]