Enterprises: setAccount

  • The PUT enterprises.setAccount method sets the account used to authenticate to the API as the enterprise.

  • This method requires authorization and uses a specific HTTP request format including the enterpriseId path parameter.

  • The request body contains the service account email address.

  • The response body mirrors the request body, confirming the service account email and kind.

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