AI-generated Key Takeaways
-
This document outlines the process for uploading a new icon and initiating its review through an HTTP POST request.
-
Successful icon uploads generate a unique
icon_id
and a resource name in the formataccounts/{account_id}/icons/{icon_id}
. -
Icon uploads will fail with an HTTP 400 error and won't trigger the review if the image is not a 1:1 aspect ratio PNG between 72 and 1200 pixels.
-
The request requires specifying the parent account using the
accounts/{account_id}
format in the path parameters. -
The request body should contain an instance of the Icon object, and a successful response will return a newly created Icon instance.
-
Authorization for this action requires the
https://www.googleapis.com/auth/travelpartner
OAuth scope.
Uploads a new icon and starts its review process. Generates an icon_id
and includes it in the icon's resource name, which is the format accounts/{account_id}/icons/{icon_id}
Returns HTTP status 400 and doesn't trigger the review process if the icon has any of these conditions:
- Image is not in PNG format, or not convertible to PNG format.
- Size less than 72 pixels
- Size greater than 1200 pixels
- Aspect ratio other than 1:1
HTTP request
POST https://travelpartner.googleapis.com/v3/{parent=accounts/*}/icons
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. The resource name of the partner account owning the icon. The format is |
Request body
The request body contains an instance of Icon
.
Response body
If successful, the response body contains a newly created instance of Icon
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/travelpartner
For more information, see the OAuth 2.0 Overview.