---
title: "Update a todo"
method: PUT
path: "/todos/{id}"
tags: ["Todos"]
---

# Update a todo

`PUT /todos/{id}`

## Request

- Base URL: `https://dummyjson.com`
- URL: `https://dummyjson.com/todos/{id}`
- Auth: none required

## Path parameters

- `id` integer, required

## Query parameters

- `delay` integer

## Request body

- TodoInput
  - `todo` string
  - `completed` boolean
  - `userId` integer

## Response `200`

Updated todo

- Todo
  - `id` integer
  - `todo` string
  - `completed` boolean
  - `userId` integer

## Other responses

- `404`: Error

---

[API](https://skmtc.dev/dummyjson/apis/dummyjson-api.md) - [All operations](https://skmtc.dev/dummyjson/apis/dummyjson-api/llms.txt) - [OpenAPI document](https://skmtc.dev/dummyjson/apis/dummyjson-api/revisions/5e704f33a559?raw)
