---
title: "Update todo"
method: PATCH
path: "/v1/todos/{id}"
tags: ["Todo"]
---

# Update todo

`PATCH /v1/todos/{id}`

Update the given todo

## Request body

- object
  - `title` string — Title of the todo item.
  - `description` string, nullable — Description of the todo item.
  - `priority` 'normal' | 'important' | 'urgent' | 'critical' — Priority of the todo item.
  - `completed` boolean — Completion status of the todo item.
  - `owned_by` string — ID of the user who owns the todo item.
  - `due_date` string, date-time, nullable — Completion due date of the todo item.

## Response `200`

OK

- Todo — A todo item belonging to a user.
  - `id` string, required — Unique identifier of the todo.
  - `title` string, required — Title of the todo item.
  - `description` string, required — Description of the todo item.
  - `priority` 'normal' | 'important' | 'urgent' | 'critical', required — Priority of the todo item.
  - `completed` boolean, required — Status of the todo item.
  - `owned_by` string, required — ID of the user who owns the todo item.
  - `created_by` string, required — ID of the user who created the todo item.
  - `due_date` string, date-time, nullable, required — Completion due date of the todo item.
  - `created_at` string, date-time, required — Date when the todo item was created.
  - `updated_at` string, date-time, nullable, required — Date when the todo item was updated.

## Other responses

- `400` — Bad request
- `401` — Unauthorized request
- `403` — Forbidden
- `404` — The requested resource not found
- `500` — Internal Server Error

---

[API](https://skmtc.net/opcotech/apis/elemo-api.md) · [All operations](https://skmtc.net/opcotech/apis/elemo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/opcotech/elemo-api/versions/6ff580b1e226/schema)
