Method: accounts.brands.patch
HTTP リクエスト
PATCH https://travelpartner.googleapis.com/v3/{brand.name=accounts/*/brands/*}
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
brand.name |
string
ブランドのリソース名。形式は accounts/{account_id}/brands/{brandId} です。brandId は、ランディング ページの照合および宿泊施設リストで使用されるパートナー ブランド ID と一致する必要があります。
|
クエリ パラメータ
パラメータ |
updateMask |
string (FieldMask format)
必須。更新するフィールド。更新できるのは displayNames フィールドと icon_id フィールドのみです。以下の URI の例に示す構文を使用し、リクエストの本文に新しい値を指定します。 リクエスト URI とリクエスト本文の例:
PATCH https://travelpartner.googleapis.com/v3/accounts/123456789/
brands/my-brand?updateMask=brand.display_names
{
"displayNames": [{
"language": "en"
"text": "Gilles' Gites"
}]
}
URI とリクエスト本文を作成するには、上記の情報で十分です。以下の文は、FieldMask 形式全般に関する自動生成された補足情報です。 これは、完全修飾されたフィールド名のカンマ区切りリストです。(例: "user.displayName,photo" )。
|
リクエストの本文
リクエストの本文には Brand
のインスタンスが含まれます。
レスポンスの本文
成功した場合、レスポンスの本文には Brand
のインスタンスが含まれます。
認証スコープ
次の OAuth スコープが必要です。
https://www.googleapis.com/auth/travelpartner
詳しくは、OAuth 2.0 の概要をご覧ください。
All rights reserved. Java は Oracle および関連会社の登録商標です。
最終更新日 2022-08-23 UTC。
[null,null,["最終更新日 2022-08-23 UTC。"],[[["Updates an existing brand or creates a new one if it doesn't exist using a PATCH request."],["Requires specifying the brand name in the URL path and the fields to update using `updateMask` in the query parameters."],["The request body should contain the updated brand information in JSON format as defined by the `Brand` object."],["Successful responses will return the updated `Brand` object, and the request needs `https://www.googleapis.com/auth/travelpartner` OAuth scope for authorization."]]],[]]