Enterprises: setAccount

  • This operation sets the service account for enterprise authentication to the Google Play EMM API.

  • It requires authorization with the https://www.googleapis.com/auth/androidenterprise scope.

  • The request must include the enterprise ID and the service account's email address in the request body.

  • A successful response confirms the set service account by returning its email address.

Sets the account that will be used to authenticate to the API as the enterprise.

Request

HTTP request

PUT https://www.googleapis.com/androidenterprise/v1/enterprises/enterpriseId/account

Parameters

Parameter name Value Description
Path parameters
enterpriseId string The ID of the enterprise.

Authorization

This request requires authorization with the following scope:

Scope
https://www.googleapis.com/auth/androidenterprise

For more information, see the authentication and authorization page.

Request body

In the request body, supply data with the following structure:

{
  "kind": "androidenterprise#enterpriseAccount",
  "accountEmail": string
}
Property name Value Description Notes
accountEmail string The email address of the service account.
kind string

Response

If successful, this method returns a response body with the following structure:

{
  "kind": "androidenterprise#enterpriseAccount",
  "accountEmail": string
}
Property name Value Description Notes
accountEmail string The email address of the service account.
kind string