How can I update a product's avatar using the API

I am trying to upload products avatar to the Freshsales CRM using the API and I am having problems, always return null avatar.