For the complete documentation index, see llms.txt. This page is also available as Markdown.

Categories

Category management for zones

List all categories

get
Responses
200

List of categories

application/json
idintegerOptional
namestringOptional
descriptionstring · nullableOptional
colorstringOptional
createdAtstring · date-timeOptional
get/categories
GET /api/categories HTTP/1.1
Accept: */*
[
  {
    "id": 1,
    "name": "text",
    "description": "text",
    "color": "text",
    "createdAt": "2026-01-01T00:00:00.000Z"
  }
]

Create a new category

post
Body
namestringRequired
descriptionstring · nullableOptional
colorstringOptionalDefault: #3B82F6
Responses
201

Category created

application/json
idintegerOptional
namestringOptional
descriptionstring · nullableOptional
colorstringOptional
createdAtstring · date-timeOptional
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"
}

Update a category

put
Body
idintegerRequired
namestringRequired
descriptionstring · nullableOptional
colorstringOptional
Responses
200

Category updated

application/json
idintegerOptional
namestringOptional
descriptionstring · nullableOptional
colorstringOptional
createdAtstring · date-timeOptional
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"
}

Delete a category

delete
Query parameters
idstringRequired
Responses
200

Category deleted

No content

delete/categories
DELETE /api/categories?id=text HTTP/1.1
Accept: */*

No content

Last updated