Enterprises: setAccount

  • ThePUT 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 theenterpriseId 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.

Note:Requiresauthorization.

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

Request

HTTP request

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

Parameters

Parameter nameValueDescription
Path parameters
enterpriseIdstring 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 theauthentication and authorization page.

Request body

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

{  "kind": "androidenterprise#enterpriseAccount",  "accountEmail":string}
Property nameValueDescriptionNotes
accountEmailstringThe email address of the service account.
kindstring

Response

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

{  "kind": "androidenterprise#enterpriseAccount",  "accountEmail":string}
Property nameValueDescriptionNotes
accountEmailstringThe email address of the service account.
kindstring

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024-10-31 UTC.