Connect API Documentation

https://connect.yourbarmate.com/api
Changelog

Replace all categories

PUT /categories

Request properties

  • categories: The array of category objects:
    • id: The category identifier
    • name: The category name

Categories can only be deleted if no products are associated with them.

Status codes

  • 200 on success
  • 400 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"
}
]
}