Path parameters
-
The ID of the task to operate on
Body Required
-
id integer
The unique identifier for a task.
-
description string
A brief summary of the task.
-
status string
The current status of the task, which can be 'new', 'in progress', or 'completed'.
Values are
new
,in progress
, orcompleted
. Default value isnew
.
PUT
/tasks/{taskId}
curl \
--request PUT https://api.todolist.local/v1/tasks/3 \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"id":1,"description":"Buy milk","status":"new"}'
Request examples
{
"id": 1,
"description": "Buy milk",
"status": "new"
}
Response examples (200)
{
"id": 1,
"description": "Buy milk",
"status": "new"
}