AI-generated Key Takeaways
- 
          
This API endpoint updates reseller metadata associated with a specific device.
 - 
          
The HTTP request is a POST method to a URL that includes
metadataOwnerIdanddeviceIdas path parameters. - 
          
The request body requires a JSON object containing
deviceMetadata, which specifies the metadata to be attached to the device. - 
          
A successful response returns an instance of
DeviceMetadata, providing details about the updated metadata. - 
          
Authorization for this operation requires the OAuth scope
https://www.googleapis.com/auth/androidworkprovisioning. 
Updates reseller metadata associated with the device.
HTTP request
POST https://androiddeviceprovisioning.googleapis.com/v1/partners/{metadataOwnerId}/devices/{deviceId}/metadata
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
metadataOwnerId | 
                
                   
 Required. The owner of the newly set metadata. Set this to the partner ID.  | 
              
deviceId | 
                
                   
 Required. The ID of the device.  | 
              
Request body
The request body contains data with the following structure:
| JSON representation | |
|---|---|
{
  "deviceMetadata": {
    object ( | 
                |
| Fields | |
|---|---|
deviceMetadata | 
                  
                     
 Required. The metadata to attach to the device.  | 
                
Response body
If successful, the response body contains an instance of DeviceMetadata.
Authorization Scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/androidworkprovisioning
For more information, see the OAuth 2.0 Overview.