Skip to content

DELETE/todos/{id}

Delete todo

Permanently remove a todo. Returns deleted resource. Triggers `todos.deleted` webhook.

Parameters 1

NameTypeDescription
idrequiredpath · integerResource identifier

ReturnsTodo

Bearer token required

Response examples

200Deleted todo

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"
}
404404 — resource not found

application/json

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

Released under the MIT License.