Skip to main content
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"
  }'
{
  "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"
}
This endpoint requires authentication.

Path Parameters

id
string
required
Task UUID

Request

All fields are optional. Only include fields you want to update.
title
string
New title (1-200 characters)
description
string
New description (max 2000 characters)
priority
integer
New priority (1-5)
status
string
New status: open, in_progress, completed, cancelled
dueDate
string
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"
  }'
{
  "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"
}