Skip to content

PATCH/todos/{id}

Partially update todo

Partial update — only provided fields change. Triggers `todos.updated` webhook.

Parameters 1

NameTypeDescription
idrequiredpath · integerResource identifier

ReturnsTodo

AcceptsTodoInput

Bearer token required

Response examples

200Todo updated

application/json example derived from schema

{
  "id": 1,
  "userId": 1,
  "title": "Configure monitoring",
  "completed": true,
  "priority": "low",
  "dueDate": null,
  "tags": [],
  "createdAt": "2024-01-25T00:38:32.919Z"
}
400400 — invalid input or malformed JSON

application/json

{
  "error": {
    "status": 400,
    "message": "Request body required"
  }
}
404404 — resource not found

application/json

{
  "error": {
    "status": 404,
    "message": "users #999 not found"
  }
}

Released under the MIT License.