Partially updates a vehicle's attributes. Only the attributes mentioned in the request will be updated, other attributes will NOT be altered. Note: this is different in vehicles.update
, where the whole attributes
field will be replaced by the one in UpdateVehicleRequest
, attributes not in the request would be removed.
HTTP request
POST https://fleetengine.googleapis.com/v1/{name=providers/*/vehicles/*}:updateAttributes
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
name |
Required. Must be in the format |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "header": { object ( |
Fields | |
---|---|
header |
The standard Fleet Engine request header. |
attributes[] |
Required. The vehicle attributes to update. Unmentioned attributes are not altered or removed. |
Response body
vehicles.updateAttributes
response message.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"attributes": [
{
object ( |
Fields | |
---|---|
attributes[] |
Required. The updated full list of vehicle attributes, including new, altered, and untouched attributes. |