Create a new task associated with a project.
curl -X POST http://localhost:3000/api/v1/tasks \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"title": "Implement login",
"projectId": "clxyz456",
"status": "TODO",
"priority": "HIGH"
}'
{
"id": "clxyz789",
"title": "Implement login",
"status": "TODO",
"priority": "HIGH",
"projectId": "clxyz456",
"createdAt": "2026-03-18T01:00:00.000Z"
}
TODO, IN_PROGRESS, DONE).LOW, MEDIUM, HIGH).2026-04-01T00:00:00.000Z).curl -X POST http://localhost:3000/api/v1/tasks \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"title": "Implement login",
"projectId": "clxyz456",
"status": "TODO",
"priority": "HIGH"
}'
{
"id": "clxyz789",
"title": "Implement login",
"status": "TODO",
"priority": "HIGH",
"projectId": "clxyz456",
"createdAt": "2026-03-18T01:00:00.000Z"
}
curl -X POST http://localhost:3000/api/v1/tasks \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"title": "Implement login",
"projectId": "clxyz456",
"status": "TODO",
"priority": "HIGH"
}'
{
"id": "clxyz789",
"title": "Implement login",
"status": "TODO",
"priority": "HIGH",
"projectId": "clxyz456",
"createdAt": "2026-03-18T01:00:00.000Z"
}