Creating/Updating a space with custom space icon

Has anyone be successful in setting a custom space icon via the rest api? In this particular use case it does not matter if the logo is set during the creation of a space or if it later can be updated. I haven’t been able to find any documented parameters in the api nor any questions answered on google.

The space object allows to expand the icon property but adding this value during the space creation has no effect

Thanks for your help.