curl --request PATCH \
--url http://localhost:3333/v1/tasks/{taskId} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"title": "Review access controls",
"description": "Review and update access control policies",
"status": "in_progress",
"assigneeId": "mem_abc123",
"frequency": "monthly",
"department": "it",
"reviewDate": "2025-01-01T00:00:00.000Z"
}
'{
"id": "tsk_abc123def456",
"title": "Implement user authentication",
"status": "in_progress",
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:30:00Z",
"description": "Add OAuth 2.0 authentication to the platform",
"taskTemplateId": "frk_tt_68406e353df3bc002994acef"
}Update an existing task (title, description, status, assignee, frequency, department, reviewDate)
curl --request PATCH \
--url http://localhost:3333/v1/tasks/{taskId} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"title": "Review access controls",
"description": "Review and update access control policies",
"status": "in_progress",
"assigneeId": "mem_abc123",
"frequency": "monthly",
"department": "it",
"reviewDate": "2025-01-01T00:00:00.000Z"
}
'{
"id": "tsk_abc123def456",
"title": "Implement user authentication",
"status": "in_progress",
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:30:00Z",
"description": "Add OAuth 2.0 authentication to the platform",
"taskTemplateId": "frk_tt_68406e353df3bc002994acef"
}API key for authentication
Unique task identifier
"tsk_abc123def456"
Task title
"Review access controls"
Task description
"Review and update access control policies"
todo, in_progress, done, not_relevant, failed "in_progress"
Assignee member ID, or null to unassign
"mem_abc123"
daily, weekly, monthly, quarterly, yearly "monthly"
none, admin, gov, hr, it, itsm, qms "it"
"2025-01-01T00:00:00.000Z"
Task updated successfully
Unique identifier for the task
"tsk_abc123def456"
Task title
"Implement user authentication"
Task status
todo, in_progress, done, blocked "in_progress"
Task creation timestamp
"2024-01-15T10:30:00Z"
Task last update timestamp
"2024-01-15T10:30:00Z"
Task description
"Add OAuth 2.0 authentication to the platform"
Task template ID
"frk_tt_68406e353df3bc002994acef"
Was this page helpful?