curl -X PATCH "https://api.hitler.app/api/tasks/task-uuid-123" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"status": "completed"
}'
const task = await api.updateTask("task-uuid-123", {
status: "completed",
});
{
"id": "task-uuid-123",
"title": "Review Q4 budget proposal",
"description": null,
"priority": 2,
"status": "completed",
"dueDate": "2024-01-20T17:00:00.000Z",
"userId": "user-uuid",
"organizationId": "org-uuid",
"createdAt": "2024-01-15T10:35:00.000Z",
"updatedAt": "2024-01-18T14:22:00.000Z"
}
{
"statusCode": 404,
"message": "Task not found",
"error": "Not Found"
}
Tasks
Update Task
Update a task’s properties or status
PATCH
/
api
/
tasks
/
{id}
curl -X PATCH "https://api.hitler.app/api/tasks/task-uuid-123" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"status": "completed"
}'
const task = await api.updateTask("task-uuid-123", {
status: "completed",
});
{
"id": "task-uuid-123",
"title": "Review Q4 budget proposal",
"description": null,
"priority": 2,
"status": "completed",
"dueDate": "2024-01-20T17:00:00.000Z",
"userId": "user-uuid",
"organizationId": "org-uuid",
"createdAt": "2024-01-15T10:35:00.000Z",
"updatedAt": "2024-01-18T14:22:00.000Z"
}
{
"statusCode": 404,
"message": "Task not found",
"error": "Not Found"
}
This endpoint requires authentication.
Path Parameters
string
required
Task UUID
Request
All fields are optional. Only include fields you want to update.string
New title (1-200 characters)
string
New description (max 2000 characters)
integer
New priority (1-5)
string
New status:
open, in_progress, completed, cancelledstring
New due date in ISO 8601 format
Response
Returns the updated task.curl -X PATCH "https://api.hitler.app/api/tasks/task-uuid-123" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"status": "completed"
}'
const task = await api.updateTask("task-uuid-123", {
status: "completed",
});
{
"id": "task-uuid-123",
"title": "Review Q4 budget proposal",
"description": null,
"priority": 2,
"status": "completed",
"dueDate": "2024-01-20T17:00:00.000Z",
"userId": "user-uuid",
"organizationId": "org-uuid",
"createdAt": "2024-01-15T10:35:00.000Z",
"updatedAt": "2024-01-18T14:22:00.000Z"
}
{
"statusCode": 404,
"message": "Task not found",
"error": "Not Found"
}