Method: providers.vehicles.updateAttributes

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

string

Required. Must be in the format providers/{provider}/vehicles/{vehicle}. The provider must be the Project ID (for example, sample-cloud-project) of the Google Cloud Project of which the service account making this call is a member.

Request body

The request body contains data with the following structure:

JSON representation
{
  "header": {
    object (RequestHeader)
  },
  "attributes": [
    {
      object (VehicleAttribute)
    }
  ]
}
Fields
header

object (RequestHeader)

The standard Fleet Engine request header.

attributes[]

object (VehicleAttribute)

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 (VehicleAttribute)
    }
  ]
}
Fields
attributes[]

object (VehicleAttribute)

Required. The updated full list of vehicle attributes, including new, altered, and untouched attributes.