Skip to main content
PATCH
/
tasks
/
subtasks
/
{id}
/
toggle
curl -X PATCH http://localhost:3000/api/v1/tasks/subtasks/clsub001/toggle \
  -H "Authorization: Bearer <token>"
{
  "id": "clsub001",
  "title": "Write unit tests",
  "completed": true,
  "taskId": "clxyz789"
}

Path Parameters

id
string
required
Subtask ID.
curl -X PATCH http://localhost:3000/api/v1/tasks/subtasks/clsub001/toggle \
  -H "Authorization: Bearer <token>"
{
  "id": "clsub001",
  "title": "Write unit tests",
  "completed": true,
  "taskId": "clxyz789"
}