Skip to content
  • Auto
  • Light
  • Dark
Get started

Update

Update
put/v1/todos/{id}
Path Parameters
idstring
Body Parameters
completed_atstring
optional
descriptionstring
optional
tag_idsarray of string
optional
titlestring
optional
Returns
idstringcompleted_atstringcreated_atstringdescriptionstringtagsarray of objecttitlestringupdated_atstringTodo
curl https://todo-ninja-ziix.onrender.com/v1/todos/$ID \
    -X PUT \
    -H 'Content-Type: application/json' \
    -H "Authorization: Bearer $TODO_NINJA_API_KEY"
200 Example
{
  "id": "todo_nc6bzmkmd014706rfda898to",
  "completed_at": "2021-01-01T00:00:00.000Z",
  "created_at": "2021-01-01T00:00:00.000Z",
  "description": "Get butter, milk, and bread",
  "tags": [
    {
      "id": "tag_tz4a98xxat96iws9zmbrgj3a",
      "created_at": "2021-01-01T00:00:00.000Z",
      "label": "Work",
      "updated_at": "2021-01-01T00:00:00.000Z"
    }
  ],
  "title": "Buy groceries",
  "updated_at": "2021-01-01T00:00:00.000Z"
}