Categories
Category management for zones
Body
namestringRequired
descriptionstring | nullableOptional
colorstringOptionalDefault:
#3B82F6
Responses
201
Category created
application/json
400
Bad request
application/json
409
Category already exists
500
Internal server error
application/json
post
POST /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-09T00:01:24.851Z"
}
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
PUT /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-09T00:01:24.851Z"
}