Method: accounts.locations.create
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
指定されたアカウントによって所有される新しい location
を作成して返します。
HTTP リクエスト
POST https://mybusiness.googleapis.com/v4/{parent=accounts/*}/locations
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
parent |
string
このビジネスを作成するアカウントの名前。
|
クエリ パラメータ
パラメータ |
validateOnly |
boolean
true の場合、ビジネスが実際に作成されることなく、リクエストの検証のみが行われます。
|
requestId |
string
重複するリクエストを検出するための、サーバーの一意のリクエスト ID。UUID を使用することをおすすめします。最大長は 50 文字です。
|
リクエスト本文
リクエストの本文には Location
のインスタンスが含まれています。
レスポンスの本文
成功した場合、レスポンスの本文には、新しく作成された Location
のインスタンスが含まれます。
認可スコープ
次の 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。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-07-25 UTC。"],[[["\u003cp\u003eCreates a new location owned by a specified account and returns the location data upon successful creation.\u003c/p\u003e\n"],["\u003cp\u003eThe endpoint utilizes a POST request to \u003ccode\u003ehttps://mybusiness.googleapis.com/v4/{parent=accounts/*}/locations\u003c/code\u003e with path and query parameters for customization.\u003c/p\u003e\n"],["\u003cp\u003eRequires a request body containing a \u003ccode\u003eLocation\u003c/code\u003e object and responds with the newly created \u003ccode\u003eLocation\u003c/code\u003e object if successful.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization is necessary using OAuth scopes like \u003ccode\u003ehttps://www.googleapis.com/auth/plus.business.manage\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/business.manage\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]