---
title: "POST /v1/partners/{partnersId}/devices:unclaim"
method: POST
path: "/v1/partners/{partnersId}/devices:unclaim"
tags: ["partners"]
---

# POST /v1/partners/{partnersId}/devices:unclaim

`POST /v1/partners/{partnersId}/devices:unclaim`

## Request

- Base URL: `https://androiddeviceprovisioning.googleapis.com`
- URL: `https://androiddeviceprovisioning.googleapis.com/v1/partners/{partnersId}/devices:unclaim`
- Auth: none declared

Unclaims a device from a customer and removes it from zero-touch enrollment.

## Path parameters

- `partnersId` string, required

## Request body

- UnclaimDeviceRequest: Request message to unclaim a device.
  - `deviceId` string, int64: Required. The device ID returned by `ClaimDevice`.
  - `deviceIdentifier` DeviceIdentifier: Encapsulates hardware and product IDs to identify a manufactured device. To understand requirements on identifier sets, read [Identifiers](https://developers.google.com/zero-touch/guides/identifiers).
    - `chromeOsAttestedDeviceId` string: An identifier provided by OEMs, carried through the production and sales process. Only applicable to Chrome OS devices.
    - `deviceType` 'DEVICE_TYPE_UNSPECIFIED' | 'DEVICE_TYPE_ANDROID' | 'DEVICE_TYPE_CHROME_OS': The type of the device
    - `imei` string: The device’s IMEI number. Validated on input.
    - `imei2` string: The device’s second IMEI number.
    - `manufacturer` string: The device manufacturer’s name. Matches the device's built-in value returned from `android.os.Build.MANUFACTURER`. Allowed values are listed in [Android manufacturers](/zero-touch/resources/manufacturer-names#manufacturers-names).
    - `meid` string: The device’s MEID number.
    - `meid2` string: The device’s second MEID number.
    - `model` string: The device model's name. Allowed values are listed in [Android models](/zero-touch/resources/manufacturer-names#model-names) and [Chrome OS models](https://support.google.com/chrome/a/answer/10130175#identify_compatible).
    - `serialNumber` string: The manufacturer's serial number for the device. This value might not be unique across different device models.
  - `sectionType` 'SECTION_TYPE_UNSPECIFIED' | 'SECTION_TYPE_SIM_LOCK' | 'SECTION_TYPE_ZERO_TOUCH': Required. The section type of the device's provisioning record.
  - `vacationModeDays` integer: The duration of the vacation unlock starting from when the request is processed. (1 day is treated as 24 hours)
  - `vacationModeExpireTime` string, google-datetime: The expiration time of the vacation unlock.

## Response `200`

Successful response

- Empty: A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }

---

[API](https://skmtc.dev/google/apis/androiddeviceprovisioning.md) - [All operations](https://skmtc.dev/google/apis/androiddeviceprovisioning/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/androiddeviceprovisioning/revisions/87b1e2664607?raw)
