Update a task’s fields.
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"
}
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"
}
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"
}