curl --request POST \
--url https://openapi.enginy.ai/v1/tasks \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"type": "<string>",
"subject": "<string>",
"description": "<string>",
"notes": "<string>",
"assignedId": 123,
"ownerId": "<string>",
"syncWithCRM": true,
"dueDate": "<string>",
"leadId": 123,
"companyId": 123,
"priority": "LOW",
"parentTaskId": 123
}
'