Skip to content

Unenrolls device from Google EMM and deletes the Google account details.
Stable

Request

Creates a Google user for a device and, if no request body is provided, generates a Google auth token on the EMM side.

Creates the Google account binding record for the device's EMM enrollment; when called without a request body, it also generates a fresh Google authentication token for that device on the Google EMM side.

About Device Google Account (EMM Enrollment) This endpoint is typically invoked as part of the device provisioning flow for Google EMM enrollment, establishing (or refreshing) the link between an Esper device and its Google-managed account.

Key Fields / Query Parameters

  • deviceId — UUID of the device to create the Google account binding for
  • google_device_id — Unique identifier for the Google device
  • google_user_id — Unique identifier for the Google user
  • google_authentication_token — Authentication token for the Google account, generated automatically if the request body is omitted
Path
deviceIdstring, (uuid)required

The unique identifier of the device for which Google account details need to be updated.

cURL
curl -i -X DELETE \
  'https://api.esper.io/_mock/openapi/v2/devices/{deviceId}/google-accounts/'

Responses

Successfully unenrolled and deleted the Google account details.

Bodyapplication/json
contentobject(device_GoogleAccount)
Response
{ "content": { "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0", "google_user_id": "string", "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940", "google_device_id": "string", "account_identifier": "string", "account_type": 0, "google_authentication_token": "string", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" } }