Method: networks.vehicles.patch
Stay organized with collections
Save and categorize content based on your preferences.
HTTP request
PATCH https://middlemileoptimization.googleapis.com/v1/{vehicle.name=networks/*/vehicles/*}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
vehicle.name |
string
Identifier. Cannot be updated.
|
Query parameters
Parameters |
updateMask |
string (FieldMask format)
Optional. The list of fields to update. This is a comma-separated list of fully qualified names of fields. Example: "user.displayName,photo" .
|
Request body
The request body contains an instance of Vehicle
.
Response body
If successful, the response body contains an instance of Vehicle
.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-14 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-14 UTC."],[[["\u003cp\u003eUpdates a vehicle's information using a \u003ccode\u003ePATCH\u003c/code\u003e request to the specified URL.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires the vehicle's identifier in the URL path and allows specifying fields to update using the \u003ccode\u003eupdateMask\u003c/code\u003e query parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe request body and successful response both contain a \u003ccode\u003eVehicle\u003c/code\u003e object with the updated information.\u003c/p\u003e\n"]]],["This describes how to update a vehicle using a `PATCH` request to a specific URL. The URL includes a `vehicle.name` path parameter that identifies the vehicle and cannot be updated. An optional `updateMask` query parameter specifies which fields to modify, using a comma-separated list. The request body contains the updated `Vehicle` data. Upon success, the response body returns the updated `Vehicle` information.\n"],null,["# Method: networks.vehicles.patch\n\nUpdates a Vehicle.\n\n### HTTP request\n\n`PATCH https://middlemileoptimization.googleapis.com/v1/{vehicle.name=networks/*/vehicles/*}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|------------------|-----------------------------------------|\n| `vehicle.``name` | `string` Identifier. Cannot be updated. |\n\n### Query parameters\n\n| Parameters ||\n|----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `update``Mask` | `string (`[FieldMask](https://protobuf.dev/reference/protobuf/google.protobuf/#field-mask)` format)` Optional. The list of fields to update. This is a comma-separated list of fully qualified names of fields. Example: `\"user.displayName,photo\"`. |\n\n### Request body\n\nThe request body contains an instance of [Vehicle](/optimization/middlemileoptimization/reference/rest/v1/networks.vehicles#Vehicle).\n\n### Response body\n\nIf successful, the response body contains an instance of [Vehicle](/optimization/middlemileoptimization/reference/rest/v1/networks.vehicles#Vehicle)."]]