AI-generated Key Takeaways
-
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 needshttps://www.googleapis.com/auth/travelpartner
OAuth scope for authorization.
Updates a brand.
HTTP request
PATCH https://travelpartner.googleapis.com/v3/{brand.name=accounts/*/brands/*}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
brand.name |
Output only. The resource name for the brand in the format A default brand is applied to properties that do not have a brand. The |
Query parameters
Parameters | |
---|---|
updateMask |
Required. The field to update. Only the Example request URI and request body:
The information above is sufficient for forming the URI and request body. The sentence below is auto-generated, supplemental information about the This is a comma-separated list of fully qualified names of fields. Example: |
allowMissing |
When true, and the Brand is not found, a new Brand will be created. In this situation, |
Request body
The request body contains an instance of Brand
.
Response body
If successful, the response body contains an instance of Brand
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/travelpartner
For more information, see the OAuth 2.0 Overview.