Method: enterprises.create
Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Requête HTTP
POST https://androidmanagement.googleapis.com/v1/enterprises
L'URL utilise la syntaxe de transcodage gRPC.
Paramètres de requête
Paramètres |
projectId |
string
ID du projet Google Cloud Platform qui sera propriétaire de l'entreprise.
|
signupUrlName |
string
Nom de l'SignupUrl utilisé pour s'inscrire à l'entreprise. Définissez cette valeur lorsque vous créez une entreprise gérée par le client et non une entreprise gérée par EMM obsolète.
|
enterpriseToken |
string
Jeton d'entreprise ajouté à l'URL de rappel. Définissez cette valeur lorsque vous créez une entreprise gérée par le client et non une entreprise gérée par EMM obsolète.
|
agreementAccepted (deprecated) |
boolean
Indique si l'administrateur de l'entreprise a consulté et accepté le Contrat Google Play d'entreprise. Ne définissez pas ce champ pour une entreprise gérée par le client. Définissez ce champ sur "true" pour toutes les entreprises gérées par EMM.
|
Corps de la requête
Le corps de la requête contient une instance de Enterprise
.
Corps de la réponse
Si la requête aboutit, le corps de la réponse contient une nouvelle instance de Enterprise
.
Champs d'application des autorisations
Requiert le niveau d'accès OAuth suivant :
https://www.googleapis.com/auth/androidmanagement
Pour en savoir plus, consultez OAuth 2.0 Overview.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/26 (UTC).
[null,null,["Dernière mise à jour le 2025/07/26 (UTC)."],[[["\u003cp\u003eCreates an enterprise as the final step in the enterprise signup flow.\u003c/p\u003e\n"],["\u003cp\u003eSends a POST request to \u003ccode\u003ehttps://androidmanagement.googleapis.com/v1/enterprises\u003c/code\u003e to initiate enterprise creation.\u003c/p\u003e\n"],["\u003cp\u003eRequires providing details like project ID, signup URL name (for customer-managed enterprises), and enterprise token.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should contain an instance of \u003ccode\u003eEnterprise\u003c/code\u003e, and a successful response returns a newly created \u003ccode\u003eEnterprise\u003c/code\u003e instance.\u003c/p\u003e\n"],["\u003cp\u003eNeeds authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/androidmanagement\u003c/code\u003e scope.\u003c/p\u003e\n"]]],["To create an enterprise, send a `POST` request to `https://androidmanagement.googleapis.com/v1/enterprises`. Include query parameters like `projectId`, `signupUrlName`, and `enterpriseToken` depending on the enterprise type. The request body should contain an `Enterprise` instance. A successful response will return the created `Enterprise` instance. Authorization requires the `https://www.googleapis.com/auth/androidmanagement` OAuth scope. Note the parameter `agreementAccepted` is deprecated.\n"],null,["# Method: enterprises.create\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nCreates an enterprise. This is the last step in the [enterprise signup flow](/android/management/create-enterprise). See also: [`SigninDetail`](/android/management/reference/rest/v1/enterprises#SigninDetail)\n\n### HTTP request\n\n`POST https://androidmanagement.googleapis.com/v1/enterprises`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Query parameters\n\n| Parameters ||\n|--------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `projectId` | `string` The ID of the Google Cloud Platform project which will own the enterprise. |\n| `signupUrlName` | `string` The name of the [`SignupUrl`](/android/management/reference/rest/v1/signupUrls#SignupUrl) used to sign up for the enterprise. Set this when creating a [customer-managed enterprise](https://developers.google.com/android/management/create-enterprise#customer-managed_enterprises) and not when creating a deprecated [EMM-managed enterprise](https://developers.google.com/android/management/create-enterprise#emm-managed_enterprises). |\n| `enterpriseToken` | `string` The enterprise token appended to the callback URL. Set this when creating a [customer-managed enterprise](https://developers.google.com/android/management/create-enterprise#customer-managed_enterprises) and not when creating a deprecated [EMM-managed enterprise](https://developers.google.com/android/management/create-enterprise#emm-managed_enterprises). |\n| `agreementAccepted` **(deprecated)** | `boolean` Whether the enterprise admin has seen and agreed to the [managed Google Play Agreement](https://www.android.com/enterprise/terms/). Do not set this field for any [customer-managed enterprise](https://developers.google.com/android/management/create-enterprise#customer-managed_enterprises). Set this to field to true for all [EMM-managed enterprises](https://developers.google.com/android/management/create-enterprise#emm-managed_enterprises). |\n\n### Request body\n\nThe request body contains an instance of [Enterprise](/android/management/reference/rest/v1/enterprises#Enterprise).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [Enterprise](/android/management/reference/rest/v1/enterprises#Enterprise).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/androidmanagement`\n\nFor more information, see the [OAuth 2.0 Overview](/identity/protocols/OAuth2)."]]