curl --request POST \
--url http://localhost:3333/v1/tasks \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"title": "Implement access controls",
"description": "Set up role-based access controls for the platform",
"assigneeId": "mem_abc123",
"frequency": "monthly",
"department": "it",
"controlIds": [
"ctrl_abc123"
],
"taskTemplateId": "tmpl_abc123",
"vendorId": "vnd_abc123"
}
'{
"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"
}Create a new task for the organization
curl --request POST \
--url http://localhost:3333/v1/tasks \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"title": "Implement access controls",
"description": "Set up role-based access controls for the platform",
"assigneeId": "mem_abc123",
"frequency": "monthly",
"department": "it",
"controlIds": [
"ctrl_abc123"
],
"taskTemplateId": "tmpl_abc123",
"vendorId": "vnd_abc123"
}
'{
"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
"Implement access controls"
"Set up role-based access controls for the platform"
"mem_abc123"
daily, weekly, monthly, quarterly, yearly "monthly"
none, admin, gov, hr, it, itsm, qms "it"
["ctrl_abc123"]"tmpl_abc123"
Vendor ID to connect this task to
"vnd_abc123"
Task created 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?