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 theidin the path parameters.name: The category name
Status codes
200on success400if the request is invalid
Response properties
The updated categories as returned by GET /categories.
Example request
{
"id": "1234",
"name": "Spirits"
}