Method: enterprises.create
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-07-26 (UTC).
[null,null,["Zuletzt aktualisiert: 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)."]]