I want to change the icon for a connection from the marketplace, but I seem to get stuck.
The icon is the global brand icon, but I only want their regional icon.
Changing the display name was easy, but when submitting the options-object, I seem to have to attach a fetchUserScripts-list. When I GET the connection I do not get this property in return. So I am clueless as to what to set this parameter to, to be able to change the icon.
Once you GET the connection details, even if the options parameter is not retrieved, you should still pe able to use it to update the connection itself.
Please try to UPDATE the connection and add the desired icon like this:
{
"options": {
"icon_url": "{{iconURL}}"
}
}
Please keep in mind that depending on the connection, you might be required to add additional parameters when updating it, you can retrieve the necessary information from the GET request you have previously performed.
If you have any other questions or if you still experience issues, let me know!
Yet when I try to UPDATE the connection, I get a 400 Bad Request stating {âstatusCodeâ:400,âerrorâ:âBad Requestâ,âmessageâ:âPayload validation error: âMissing required property: scriptsâ on property options.â,âerrorCodeâ:âinvalid_bodyâ}
I have to admit that I have no idea what this scripts-property should contain, since the GET does not return any data for it.
Can you confirm that you are not receiving the scripts through our Management API page?
If you do receive them, by using the icon_url and scripts parameters you should be able to update the logo!
The solution was in your request there, {{ManagementAPI_Token}}!
Using the Management API Token through the APIs > Auth0 Management API > API Explorer instead of the one for the application I configured myself gave all the data instead of just the previous minimum data.