settings/website-icon
The default website icon for the Compass App List (Launch Pad).
To manage the default icon for the Compass app itself, that is, the icon that appears on the device home screen, see settings/browser-launcher-icon.
GET
Retrieves the default site icon that displays for a website in the Compass App List. This icon displays when you have not chosen a customized icon for a website.
Example request
Request
curl -v -L -b cookie -c cookie -X GET https://bc.qwe.com/mocana-app-control/rest/settings/website-icon
Response
{
"message": "",
"settings": [{
"blob_data": "https://bc.qwe.com:443/mocana-app-control/rest/files/68092c60-3d77-4525-b4a0-501c66a5b6c8",
"blob_hash": "68092c60-3d77-4525-b4a0-501c66a5b6c8",
"code": "OPT_CODE_WEBSITE_ICON_DEFAULT",
"string_data": "96x96"
}],
"status": "OK"
}
POST
Uploads a default website icon for a website in the Compass App List.
Parameters
Parameter | Description |
---|---|
filename | Required. The name of the default icon for websites in the Compass App List. The valid value is a string. The name itself does not need to match the filename of the icon you want to upload. This API call only accepts binaries in the PNG file format. It does not accept Apple's "crushed" PNG format. |
Example request
Request
curl -v -L -b cookie -c cookie -X \
POST https://bc.qwe.com/mocana-app-control/rest/settings/website-icon \
--data-binary @icons/Mobile_users.png
Note: The value for the --data-binary option is the path and the name of the binary file to upload for the default site icon.
Response
{
"message": "",
"settings": [{
"blob_data": "https://bc.qwe.com/mocana-app-control/rest/files/e9bdae92-d1be-4aad-87dc-5fed831690dc",
"blob_hash": "e9bdae92-d1be-4aad-87dc-5fed831690dc",
"code": "OPT_CODE_WEBSITE_ICON_CUSTOM",
"string_data": "48x48"
}],
"status": "OK"
}
DELETE
Resets the site icon that displays in the App List of the Compass Browser, so that the Blue Cedar default icon is used.
Example request
Request
curl -v -L -b cookie -c cookie -X DELETE https://bc.qwe.com/mocana-app-control/rest/settings/website-icon
Response
{
"message": "",
"settings": [{
"blob_data": "https://bc.qwe.com/mocana-app-control/rest/files/68092c60-3d77-4525-b4a0-501c66a5b6c8",
"blob_hash": "68092c60-3d77-4525-b4a0-501c66a5b6c8",
"code": "OPT_CODE_WEBSITE_ICON_DEFAULT",
"string_data": "96x96"
}],
"status": "OK"
}