How to update an image using the Plasmic CMS API?

Sorry if this question has been answered before, but how would I go about uploading an image using the Plasmic CMS API?