Hi, I want to update the icon of a place (not thumbnail!) through the web API. Is there an endpoint that will allow me to do this?
There already exists an API to update the thumbnail of a game, but I didn’t have much luck finding one for icons.
I have tried using the POST https://www.roblox.com/places/icons/add-icon endpoint with the appropriate authentication, headers, and relevant form-data.
This is roughly how I’m sending the request currently:
var data = new FormData();
data.append('iconImageFile', IMAGE_BINARY_DATA);
data.append('placeId', 'VALID_PLACE_ID');
method: 'POST',
url: 'https://www.roblox.com/places/icons/add-icon',
headers: {
... all the other headers
'Referer': 'https://www.roblox.com/places/VALID_PLACE_ID/update',
'Content-Length': CONTENT_LENGTH,
'X-CSRF-TOKEN': VALID_XCSRF_TOKEN,
...
}
This code attempts to mimic the request made by a human on the webpage for updating a place icon. However, the request goes through, and even if it’s valid with the correct authentication I get a 403 status response.