Tasks
Update Task
Update a task’s fields.
PATCH
/
tasks
/
{id}
curl -X PATCH http://localhost:3000/api/v1/tasks/clxyz789 \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"status": "IN_PROGRESS"}'
{
"id": "clxyz789",
"title": "Implement login",
"status": "IN_PROGRESS",
"priority": "HIGH"
}
Path Parameters
Body
Any fields from Create Task can be partially updated.curl -X PATCH http://localhost:3000/api/v1/tasks/clxyz789 \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"status": "IN_PROGRESS"}'
{
"id": "clxyz789",
"title": "Implement login",
"status": "IN_PROGRESS",
"priority": "HIGH"
}
⌘I
curl -X PATCH http://localhost:3000/api/v1/tasks/clxyz789 \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"status": "IN_PROGRESS"}'
{
"id": "clxyz789",
"title": "Implement login",
"status": "IN_PROGRESS",
"priority": "HIGH"
}