Method: accounts.create
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
指定された親の下に、指定された名前とタイプでアカウントを作成します。
- 個人アカウントや組織は作成できません。
- ユーザー グループを、メインのオーナーの個人アカウントで作成することはできません。
- 個人アカウントが組織内にある場合、個人アカウントのメインのオーナーと一緒にビジネス グループを作成することはできません。
- ビジネス グループはビジネス グループを所有できません。
HTTP リクエスト
POST https://mybusiness.googleapis.com/v4/accounts
この URL は gRPC Transcoding 構文を使用します。
クエリ パラメータ
パラメータ |
primaryOwner |
string
作成するアカウントのメインのオーナーとなるアカウントのリソース名。accounts/{accountId}/ の形式にする必要があります。
|
リクエスト本文
リクエストの本文には Account
のインスタンスが含まれています。
レスポンスの本文
成功した場合、レスポンスの本文には、新しく作成された Account
のインスタンスが含まれます。
認可スコープ
次の OAuth スコープのいずれかが必要です。
https://www.googleapis.com/auth/plus.business.manage
https://www.googleapis.com/auth/business.manage
詳細については、OAuth 2.0 の概要をご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-25 UTC。
[null,null,["最終更新日 2025-07-25 UTC。"],[[["\u003cp\u003eThis endpoint creates a new Google My Business account with a specified name, type, and primary owner, but Personal accounts and Organizations cannot be created directly.\u003c/p\u003e\n"],["\u003cp\u003eLocation Groups have ownership restrictions, preventing creation by Personal accounts under certain conditions or ownership of other Location Groups.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires specifying the primary owner's account ID and the account details in the request body, using the \u003ccode\u003ePOST\u003c/code\u003e method with the provided URL.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful requests return the newly created account details, while authorization requires specific OAuth scopes for account management.\u003c/p\u003e\n"],["\u003cp\u003eThis endpoint is deprecated and Google recommends using the Account Management API instead for creating accounts.\u003c/p\u003e\n"]]],[],null,["# Method: accounts.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\n| Deprecated. Please use the [Account Management API](https://developers.google.com/my-business/reference/accountmanagement/rest/v1/accounts/create) instead.\nCreates an account with the specified name and type under the given parent.\n\n- Personal accounts and Organizations cannot be created.\n- User Groups cannot be created with a Personal account as primary owner.\n- Location Groups cannot be created with a primary owner of a Personal account if the Personal account is in an Organization.\n- Location Groups cannot own Location Groups.\n\n\u003cbr /\u003e\n\n### HTTP request\n\n`POST https://mybusiness.googleapis.com/v4/accounts`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Query parameters\n\n| Parameters ||\n|----------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `primaryOwner` | `string` The resource name of the account which will be the primary owner of the account being created. It should be of the form `accounts/{accountId}/`. |\n\n### Request body\n\nThe request body contains an instance of [Account](/my-business/reference/rest/v4/accounts#Account).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [Account](/my-business/reference/rest/v4/accounts#Account).\n\n### Authorization Scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/plus.business.manage`\n- `https://www.googleapis.com/auth/business.manage`\n\nFor more information, see the [OAuth 2.0 Overview](https://developers.google.com/identity/protocols/OAuth2)."]]