v1

latestOpenAPI 3.0.32026-07-17542197.8 KB
Todo

Update todo

Update the given todo

patch/v1/todos/{id}

Request body

titlestring

Title of the todo item.

descriptionstring nullable

Description of the todo item.

priority'normal' | 'important' | 'urgent' | 'critical'

Priority of the todo item.

completedboolean

Completion status of the todo item.

owned_bystring

ID of the user who owns the todo item.

due_datestring date-time nullable

Completion due date of the todo item.

Example request

{
  "title": "Do something great",
  "description": "I'll make the world a better place today.",
  "priority": "urgent"
}

Response

OK

idstring required

Unique identifier of the todo.

titlestring required

Title of the todo item.

descriptionstring required

Description of the todo item.

priority'normal' | 'important' | 'urgent' | 'critical' required

Priority of the todo item.

completedboolean required

Status of the todo item.

owned_bystring required

ID of the user who owns the todo item.

created_bystring required

ID of the user who created the todo item.

due_datestring date-time nullable required

Completion due date of the todo item.

created_atstring date-time required

Date when the todo item was created.

updated_atstring date-time nullable required

Date when the todo item was updated.

Example response

{
  "id": "9bsv0s46s6s002p9ltq0",
  "title": "Do something great",
  "description": "I'll make the world a better place today.",
  "priority": "urgent"
}