Enterprises: setAccount Stay organized with collections Save and categorize content based on your preferences.
Page Summary
The
PUT enterprises.setAccountmethod 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
enterpriseIdpath 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 theenterprise.
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 theauthentication 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 |
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.