Method: partners.devices.claim

Claims a device for a customer and adds it to zero-touch enrollment. If the device is already claimed by another customer, the call returns an error.

HTTP request

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

The URL uses Google API HTTP annotation syntax.

Path parameters

Parameters
partnerId

string (int64 format)

Required. The ID of the reseller partner.

Request body

The request body contains data with the following structure:

JSON representation
{
  "deviceIdentifier": {
    object(DeviceIdentifier)
  },
  "sectionType": enum(DeviceProvisioningSectionType),
  "customerId": string
}
Fields
deviceIdentifier

object(DeviceIdentifier)

Required. The device identifier of the device to claim.

sectionType

enum(DeviceProvisioningSectionType)

Required. The section type of the device's provisioning record.

customerId

string (int64 format)

Required. The ID of the customer for whom the device is being claimed.

Response body

If successful, the response body contains data with the following structure:

Response message containing device id of the claim.

JSON representation
{
  "deviceId": string,
  "deviceName": string
}
Fields
deviceId

string (int64 format)

The device ID of the claimed device.

deviceName

string

The resource name of the device in the format partners/[PARTNER_ID]/devices/[DEVICE_ID].

Authorization Scopes

Requires the following OAuth scope:

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

For more information, see the OAuth 2.0 Overview.

Send feedback about...

Android zero-touch enrollment