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 \
-X PUT https://api.todolist.local/v1/tasks/3 \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"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"
}