Using the following command twice fails:
curl -X POST -H "Authorization: Bearer XXXXX" -H "Content-Type: application/json" -H "Cache-Control: no-cache" -d '{
"category": {
"includeInMenu": true,
"name": "AB",
"id": 0,
"isActive": true,
"parentId": 0
}
}' "http://localhost/rest/V1/categories"
Even though I tried changing the "name"
field.
Any Idea?
Best Answer
Use body like this.
Custom attributes "url_key" must be unique for all categories (and products)