Overview
Categories in Chronos Calendar are synonymous with todo lists. They provide a way to organize todo items into different groups with custom names and colors.The terms “categories” and “lists” are used interchangeably in the API. All category endpoints are documented in the Todo Lists reference.
Category Management
For complete documentation on category/list management, see:Todo Lists
Full CRUD operations for managing categories
Reorder Categories
Reorder categories using drag-and-drop
Quick Reference
Category Endpoints
All category endpoints use the/todos/todo-lists base path:
| Method | Endpoint | Description |
|---|---|---|
GET | /todos/todo-lists | List all categories |
POST | /todos/todo-lists | Create a new category |
PUT | /todos/todo-lists/{list_id} | Update a category |
DELETE | /todos/todo-lists/{list_id} | Delete a category |
POST | /todos/todo-lists/reorder | Reorder categories |
Category Schema
Unique identifier for the category (UUID)
User ID that owns this category
Category name (encrypted, max 100 characters)
Hex color code (e.g.,
#3B82F6)Whether this is a system category (cannot be deleted)
Sort order for displaying categories
Category Reordering
POST /todos/todo-lists/reorder
Reorder all categories in a single operation
Request Body
Array of category UUIDs in the desired display order
Example Request
Example Response
Categories are assigned sequential order values starting from 0. The first UUID in the array receives
order: 0, the second receives order: 1, and so on.System Categories
System categories are pre-created lists that cannot be deleted by users. They are identified by theisSystem: true flag.
Characteristics
- Cannot be deleted: DELETE operations are blocked
- Can be updated: Name and color can be modified
- Skip encryption optimization: System category names may skip encryption for performance
- User-specific: Each user has their own set of system categories
Color Validation
Category colors must be valid 6-digit hex codes. Valid formats:#FF5733#3b82f6#10B981
FF5733(missing #)#F57(too short)#FF57339(too long)rgb(255, 87, 51)(not hex)
Related Endpoints
Todo Items
Manage individual todos within categories
Reorder Todos
Reorder todos within a category