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

TypeError: Cannot read properties of undefined (reading 'data')

I have this in my console