PUT /categories/:id
Parameters
id
: The identifier of the category to create or update
Request properties
id
: The category identifier (optional). If provided, it must be equal to theid
in the path parameters.name
: The category name
Status codes
200
on success400
if the request is invalid
Response properties
The updated categories as returned by GET /categories
.
Example request
{
"id": "1234",
"name": "Spirits"
}