Method: accounts.locations.patch
指定したビジネスを更新します。
Google+ ページがあるビジネスでのみ写真を使用できます。
ビジネスが存在しない場合は NOT_FOUND
を返します。
HTTP リクエスト
PATCH https://mybusiness.googleapis.com/v4/{name=accounts/*/locations/*}
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
name |
string
更新するビジネスの名前です。
|
クエリ パラメータ
パラメータ |
updateMask |
string (FieldMask format)
更新するフィールドです。マスクが指定されていない場合は、完全な更新として処理され、すべてのフィールドは渡された値に設定されます。リクエストに含まれる未設定の空のフィールドもこの対象となる場合があります。 完全修飾フィールド名のカンマ区切りリストです。(例: "user.displayName,photo" )。
|
validateOnly |
boolean
true の場合、ビジネスが実際に更新されることなく、リクエストの検証のみが行われます。
|
attributeMask |
string (FieldMask format)
更新する属性の ID です。マスクで指定した属性のみが更新されます。マスクにのみ含まれ、ビジネスには含まれない属性は削除されます。空のマスクを使用すると、すべての属性が更新されます。 このフィールドを設定するときは常に、updateMask に更新するフィールドの 1 つとして属性を含める必要があります。 完全修飾フィールド名のカンマ区切りリストです。(例: "user.displayName,photo" )。
|
リクエストの本文
リクエストの本文には 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 および関連会社の登録商標です。
最終更新日 2023-12-02 UTC。
[null,null,["最終更新日 2023-12-02 UTC。"],[[["This document outlines how to update a specific Google My Business location using the `PATCH` HTTP request method."],["The request requires specifying the location's name in the URL path and can include optional query parameters like `updateMask`, `validateOnly`, and `attributeMask` to control the update process."],["The request body should contain a `Location` object with the desired updates, and a successful response will return the updated `Location` object."],["Authorization is necessary and requires one of the specified OAuth scopes: `https://www.googleapis.com/auth/plus.business.manage` or `https://www.googleapis.com/auth/business.manage`."],["Photos can only be added to locations with an associated Google+ page, and attempting to update a non-existent location results in a `NOT_FOUND` error."]]],["This describes updating a location using a `PATCH` request to the specified URL. The location is identified by its `name` in the path. Updates are controlled by the `updateMask` and `attributeMask` query parameters. A boolean `validateOnly` parameter allows for request validation without making changes. The request and response bodies both use a Location object. Authorization requires specific OAuth scopes. A location must have a Google+ page to be updated with photos, and requests for non-existent locations return `NOT_FOUND`.\n"]]