How do I update file in a model in strapi via API?

If you are not calling /upload directly and are uploading an image as part of the content update then you need to follow the pattern described in Upload | Strapi Documentation
I have a similar case (see image)