How to add Image/Avatar to the Product

I am trying to upload products to the Freshsales CRM using the API and I am having a challenge adding avatar to the Product. I have found instructions on adding price to the Product here, but nothing about adding the avatar. Thoughts?

Hi @ racecardriver,

While I check internally, you might want to update your request to include the avatar attribute as follows:

curl -H "Authorization: Token token=sfg999666t673t7t82" -H "Content-Type: application/json" -d '{"product":{"name":"Sample Product","description":"This is a sample product","category":"Software","is_active":true,"parent_product":1,"product_code":"sample_product","sku_number":"sample_sku","valid_till":"Sat Nov 06 2021 00:00:00 GMT+0500","owner_id":3, "avatar":"youravatarurl"}}' -X POST ""

1 Like