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

If thumb is inside component you need to use:
files.nameOfComponent.thumb