Skip to main content
POST
/
tasks
Create task
curl --request POST \
  --url http://localhost:3000/v2/tasks/ \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "<string>",
  "description": "<string>",
  "priority": "low",
  "contactPerson": "<string>",
  "email": "[email protected]",
  "telephone": "<string>",
  "dueDate": "2023-11-07T05:31:56Z",
  "taskTypeId": "<string>",
  "assigneeId": "<string>",
  "userIds": [
    "<string>"
  ],
  "objectIds": [
    "<string>"
  ],
  "customerIds": [
    "<string>"
  ],
  "contactIds": [
    "<string>"
  ],
  "assignmentIds": [
    "<string>"
  ],
  "invoiceIds": [
    "<string>"
  ],
  "equipmentIds": [
    "<string>"
  ]
}
'

Body

application/json

Task data

Task creation data

title
string

Title of the task

description
string

Description of the task

priority
enum<string>

Priority of the task

Available options:
low,
medium,
high,
urgent
contactPerson
string

Name of the contact person

email
string<email>

Email of the contact person

telephone
string

Telephone of the contact person

dueDate
string<date-time>

Due date of the task

taskTypeId
string<objectid>

Task type ID

assigneeId
string<objectid>

Assignee of the task

userIds
string<objectid>[]

Related User IDs

objectIds
string<objectid>[]

Related Object IDs

customerIds
string<objectid>[]

Related Customer IDs

contactIds
string<objectid>[]

Related Contact IDs

assignmentIds
string<objectid>[]

Related Assignment IDs

invoiceIds
string<objectid>[]

Related Invoice IDs

equipmentIds
string<objectid>[]

Related Equipment IDs

Response

Task created successfully