GET /api/categories
Response 200
{
"categories": [
{
"id": "uuid",
"orgId": "uuid",
"name": "General",
"parentId": null,
"createdAt": "2026-03-28T00:00:00.000Z"
}
]
}
Documentation
These pages document the live category endpoints mounted under /api/categories.
GET /api/categoriesResponse 200
{
"categories": [
{
"id": "uuid",
"orgId": "uuid",
"name": "General",
"parentId": null,
"createdAt": "2026-03-28T00:00:00.000Z"
}
]
}
GET /api/categories/:categoryIdResponse 200
{
"category": {
"id": "uuid",
"orgId": "uuid",
"name": "General",
"parentId": null,
"createdAt": "2026-03-28T00:00:00.000Z"
}
}
POST /api/categoriesRequest
{
"name": "General",
"parentId": null
}
Response 201
{
"category": {
"id": "uuid",
"orgId": "uuid",
"name": "General",
"parentId": null,
"createdAt": "2026-03-28T00:00:00.000Z"
}
}
PUT /api/categories/:categoryIdRequest
{
"name": "Electronics",
"parentId": "uuid"
}
Response 200
{
"category": {
"id": "uuid",
"orgId": "uuid",
"name": "Electronics",
"parentId": "uuid",
"createdAt": "2026-03-28T00:00:00.000Z"
}
}
DELETE /api/categories/:categoryIdResponse 200
{
"category": {
"id": "uuid",
"orgId": "uuid",
"name": "General",
"parentId": null,
"createdAt": "2026-03-28T00:00:00.000Z"
}
}