AI-generated Key Takeaways
- 
          
This page details how to asynchronously update reseller metadata for a batch of devices using the Android Device Provisioning Partner API.
 - 
          
The
POSTrequest is made to a specific URL with a requiredpartnerIdin the path, using gRPC Transcoding syntax. - 
          
The request body must include a JSON object that specifies the list of metadata updates to be applied using the
UpdateMetadataArgumentsformat. - 
          
Each
UpdateMetadataArgumentsentry must include thedeviceMetadatato be updated, as well as a device identifier, whether through adeviceIdentifierobject or adeviceIdstring. - 
          
The request requires the
https://www.googleapis.com/auth/androidworkprovisioningOAuth scope for authorization, and a successful response returns anOperationinstance to monitor the progress. 
- HTTP request
 - Path parameters
 - Request body
 - Response body
 - Authorization Scopes
 - UpdateMetadataArguments
 
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 gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
partnerId | 
                
                   
 Required. The reseller partner ID.  | 
              
Request body
The request body contains data with the following structure:
| JSON representation | |
|---|---|
{
  "updates": [
    {
      object ( | 
                |
| Fields | |
|---|---|
updates[] | 
                  
                     
 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 OAuth 2.0 Overview.
UpdateMetadataArguments
Identifies metadata updates to one device.
| JSON representation | |
|---|---|
{ "deviceMetadata": { object (  | 
              |
| Fields | ||
|---|---|---|
deviceMetadata | 
                
                   
 Required. The metadata to update.  | 
              |
Union field device. Required. The device to update. device can be only one of the following: | 
              ||
deviceIdentifier | 
                
                   
 Required. Device identifier.  | 
              |
deviceId | 
                
                   
 Required. Device ID of the device.  | 
              |