Thanks @dan.woda, the autocomplete warnings are gone!
As for the favicon, I’ve logged into the Branding API page,
Filled in the parameters with
{
"favicon_url": "https://web.civility.social/icons/icon-48x48.png",
}
Clicked TRY, and I get an error that I’m not authenticated:
I assume that request should have worked since I’m authenticated and an admin? Otherwise, why let authenticated users spend time crafting request parameters in those boxes.
UPDATE
Turns out I had to get yet another token, in order to try that request. Now there’s a new error I’m getting:
{
"statusCode": 400,
"error": "Bad Request",
"message": "Invalid request payload JSON format"
}
The documentation states that both strings are optional:
I only wanted to change the favicon_url
.
Suggestions:
- Make setting the favicon easier. After all, it’s one textbox for the link. Can be placed next to where the logo URL is set.
- If a favicon is not supplied, default to a resized version of the logo.
- Make the branding PATCH request accept only one parameter.