Method: accounts.brands.patch
HTTP 요청
PATCH https://travelpartner.googleapis.com/v3/{brand.name=accounts/*/brands/*}
URL은 gRPC 트랜스코딩 구문을 사용합니다.
경로 매개변수
매개변수 |
brand.name |
string
브랜드의 리소스 이름으로, 형식은 accounts/{account_id}/brands/{brandId} 입니다. brandId 은(는) 방문 페이지 일치에 사용하고 속성 목록에서 사용되는 파트너의 브랜드 식별자와 일치해야 합니다.
|
쿼리 매개변수
매개변수 |
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. 자바는 Oracle 및/또는 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."]]],[]]