curl --request PUT \
--url https://api.example.com/api/tasks/:id \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"description": "<string>",
"status": "<string>",
"priority": "<string>",
"projectId": 123,
"taskTypeId": 123
}
'{
"id": 123,
"title": "<string>",
"description": "<string>",
"status": "<string>",
"priority": "<string>",
"position": 123,
"projectId": 123,
"taskTypeId": 123,
"userId": 123,
"createdAt": "<string>",
"updatedAt": "<string>"
}Update an existing task for the authenticated user
curl --request PUT \
--url https://api.example.com/api/tasks/:id \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"description": "<string>",
"status": "<string>",
"priority": "<string>",
"projectId": 123,
"taskTypeId": 123
}
'{
"id": 123,
"title": "<string>",
"description": "<string>",
"status": "<string>",
"priority": "<string>",
"position": 123,
"projectId": 123,
"taskTypeId": 123,
"userId": 123,
"createdAt": "<string>",
"updatedAt": "<string>"
}curl -X PUT https://api.dailytracker.com/api/tasks/15 \
-H "Authorization: Bearer YOUR_TOKEN_HERE" \
-H "Content-Type: application/json" \
-d '{
"status": "IN_PROGRESS",
"priority": "HIGH"
}'
{
"id": 15,
"title": "Implement user authentication",
"description": "Add JWT-based authentication to the API",
"status": "IN_PROGRESS",
"priority": "HIGH",
"position": 1,
"projectId": 5,
"taskTypeId": 2,
"userId": 123,
"createdAt": "2026-03-09T15:30:00Z",
"updatedAt": "2026-03-09T16:45:00Z"
}
{
"error": "Bad Request",
"message": "Validation failed",
"details": [
"title: size must be between 0 and 200"
]
}
{
"error": "Unauthorized",
"message": "Invalid or missing authentication token"
}
{
"error": "Not Found",
"message": "Task not found"
}