Create product categories
Product categories can be created through the categories endpoint.
To sucessfully create a product category you have to provide a label and a unique slug for each category. If you want to create hierarchical category structures you can use the “parent” field on each category.
Please note that the label attribute is translatable and will be saved as translation according to the locale of the shop which is provided in your request.
In the following example two categories are created where “Level 2 Category” is a child of “Level 1 Category”.