Help creating API request

Hi BubbleIO FORUM. Im currently trying to make a patch request through a python script to change a user icon with a file from my pc. How would such request be done? Im trying a lot of things but what format does Bubbleios api accept images in?