How to create product category using API

When we create a new product using API there is a default field called category, Can we create new category and map it to the product using API

Hi Vishnu,

No, we only allow categories to be created via the UI, but you can assign existing categories through API.

1 Like