Categories
Category management for zones
Body
namestringRequired
descriptionstring | nullableOptional
colorstringOptionalDefault: 
#3B82F6Responses
201
Category created
application/json
400
Bad request
application/json
409
Category already exists
500
Internal server error
application/json
post
/categoriesPOST /api/categories HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 54
{
  "name": "text",
  "description": "text",
  "color": "#3B82F6"
}{
  "id": 1,
  "name": "text",
  "description": "text",
  "color": "text",
  "createdAt": "2025-10-30T17:41:37.225Z"
}Body
idintegerRequired
namestringRequired
descriptionstring | nullableOptional
colorstringOptional
Responses
200
Category updated
application/json
400
Bad request
application/json
409
Category name conflict
500
Internal server error
application/json
put
/categoriesPUT /api/categories HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 58
{
  "id": 1,
  "name": "text",
  "description": "text",
  "color": "text"
}{
  "id": 1,
  "name": "text",
  "description": "text",
  "color": "text",
  "createdAt": "2025-10-30T17:41:37.225Z"
}