---
title: "Update todo"
method: PATCH
path: "/todos/{todoId}"
tags: ["📝 Todo list"]
---

# Update todo

`PATCH /todos/{todoId}`

The API endpoint is responsible for updating a todo based on the provided todo ID in the URL path variable.

When accessing this endpoint and providing the updated todo title and description in the request body, the corresponding todo with the specified ID will be modified accordingly.

## Request body

- object
  - `description` string
  - `title` string

## Response `200`

Update todo

- object
  - `data` object
    - `__v` number
    - `_id` string
    - `createdAt` string
    - `description` string
    - `isDone` boolean
    - `title` string
    - `updatedAt` string
  - `message` string
  - `statusCode` number
  - `success` boolean

---

[API](https://skmtc.net/hiteshchoudhary-ssesph/apis/freeapi.md) · [All operations](https://skmtc.net/hiteshchoudhary-ssesph/apis/freeapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hiteshchoudhary-ssesph/freeapi/versions/a9f3a290e4dc/schema)
