Create or update a single category

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 the id in the path parameters.
  • name: The category name

Status codes

  • 200 on success
  • 400 if the request is invalid

Response properties

The complete category list as returned by GET /categories.

Example request

{
"id": "1234",
"name": "Spirits"
}