Get all todos
Retrieves a complete list of all todo items from the system. This endpoint returns all todos regardless of their completion status or owner, making it useful for displaying comprehensive todo lists or performing bulk operations.
Get all todos › Responses
A list of todos
idThe todo ID
titleThe todo title
completedWhether the todo is completed
userIdThe user ID who owns the todo
Create a new todo
Creates a new todo item with the provided details. The todo will be assigned a unique ID automatically and can include a title, completion status, and user association. This is the primary endpoint for adding new tasks to the system.
Create a new todo › Request Body
titleThe todo title
userIdThe user ID who owns the todo
completedWhether the todo is completed
Create a new todo › Responses
Todo created successfully
idThe todo ID
titleThe todo title
completedWhether the todo is completed
userIdThe user ID who owns the todo
Update a todo
Updates an existing todo item by its unique identifier. You can modify any combination of the todo's properties including title, completion status, and user assignment. All changes are applied atomically to ensure data consistency.
path Parameters
idThe todo ID
Update a todo › Request Body
titleThe todo title
completedWhether the todo is completed
userIdThe user ID who owns the todo
Update a todo › Responses
Todo updated successfully
idThe todo ID
titleThe todo title
completedWhether the todo is completed
userIdThe user ID who owns the todo
Delete a todo
Permanently removes a todo item from the system using its unique identifier. This operation cannot be undone, so use with caution. The endpoint will return a 404 error if the specified todo does not exist.
path Parameters
idThe todo ID
Delete a todo › Responses
Todo deleted successfully