PUT /categories
Request properties
categories
: The array of category objects:id
: The category identifiername
: The category name
Categories can only be deleted if no products are associated with them.
Status codes
200
on success400
if the request is invalid
Response properties
The new categories as returned by GET /categories
.
Example request
{
"categories": [
{
"id": "1234",
"name": "Spirits"
},
{
"id": "5678",
"name": "Beer"
}
]
}