Complete
Complete
post/v1/todos/{id}/complete
Path Parameters
idstring
Returns
idstringcompleted_atstringcreated_atstringdescriptionstringtagsarray of objecttitlestringupdated_atstringTodo
curl https://todo-ninja-ziix.onrender.com/v1/todos/$ID/complete \
-X POST \
-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"
}