Send feedback
Method: accounts.icons.create
Stay organized with collections
Save and categorize content based on your preferences.
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
string
Required. The resource name of the partner account owning the icon. The format is accounts/{account_id}
.
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 .
Send feedback
All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{"lastModified": "Last updated 2024-09-18 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."]]