Method: partners.devices.updateMetadataAsync

Updates the reseller metadata attached to a batch of devices. This method updates devices asynchronously and returns an Operation that can be used to track progress. Read Long‑running batch operations.

HTTP request

POST https://androiddeviceprovisioning.googleapis.com/v1/partners/{partnerId}/devices:updateMetadataAsync

The URL uses Google API HTTP annotation syntax.

Path parameters

Parameters
partnerId

string (int64 format)

Required. The reseller partner ID.

Request body

The request body contains data with the following structure:

JSON representation
{
  "updates": [
    {
      object(UpdateMetadataArguments)
    }
  ]
}
Fields
updates[]

object(UpdateMetadataArguments)

Required. The list of metadata updates.

Response body

If successful, the response body contains an instance of Operation.

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/androidworkprovisioning

For more information, see the Auth Guide.

UpdateMetadataArguments

Identifies metdata updates to one device.

JSON representation
{
  "deviceMetadata": {
    object(DeviceMetadata)
  },

  // Union field device can be only one of the following:
  "deviceIdentifier": {
    object(DeviceIdentifier)
  },
  "deviceId": string
  // End of list of possible types for union field device.
}
Fields
deviceMetadata

object(DeviceMetadata)

Required. The metadata to update.

Union field device. Required. The device to update. device can be only one of the following:
deviceIdentifier

object(DeviceIdentifier)

Device identifier.

deviceId

string (int64 format)

Device ID of the device.

Send feedback about...

Android zero-touch enrollment