Categories
Category management for zones
Responses
200
List of categories
application/json
idintegerOptional
namestringOptional
descriptionstring · nullableOptional
colorstringOptional
createdAtstring · date-timeOptional
500
Internal server error
application/json
get/categories
GET /api/categories HTTP/1.1
Accept: */*
[
{
"id": 1,
"name": "text",
"description": "text",
"color": "text",
"createdAt": "2026-01-01T00:00:00.000Z"
}
]Body
namestringRequired
descriptionstring · nullableOptional
colorstringOptionalDefault:
#3B82F6Responses
201
Category created
application/json
idintegerOptional
namestringOptional
descriptionstring · nullableOptional
colorstringOptional
createdAtstring · date-timeOptional
400
Bad request
application/json
409
Category already exists
500
Internal server error
application/json
post/categories
POST /api/categories HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 54
{
"name": "text",
"description": "text",
"color": "#3B82F6"
}{
"id": 1,
"name": "text",
"description": "text",
"color": "text",
"createdAt": "2026-01-01T00:00:00.000Z"
}Body
idintegerRequired
namestringRequired
descriptionstring · nullableOptional
colorstringOptional
Responses
200
Category updated
application/json
idintegerOptional
namestringOptional
descriptionstring · nullableOptional
colorstringOptional
createdAtstring · date-timeOptional
400
Bad request
application/json
409
Category name conflict
500
Internal server error
application/json
put/categories
PUT /api/categories HTTP/1.1
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": "2026-01-01T00:00:00.000Z"
}Last updated