Create a task

post
Task

https://data.salesmachine.io/v2/tasks
This endpoint allows you to create a task
Request
Response
Request
Body Parameters
subject
required
string
Task subject
status
required
string
‚Äč
type
optional
string
Task type can be 'todo', 'meeting', 'call', 'email'. Default 'todo'
account_id
optional
string
Account ID attached to this task
contact_id
optional
string
Contact ID attached to this task
due_at
optional
integer
Timestamp at which the task is due
user_id
optional
string
User ID to whom this task is assigned
Response
200: OK
Task successfully retrieved.
{
"object": "task",
"id": "5ea9cb7d9677ff523a2c0fe8"
}

Query example

{
"subject": "remember the milk",
"body": "don't forget",
"status": 'open',
"account_id": "6120e071155b81197607c557",
"contact_id": "6120e071155b81197607c565",
"due_at": 1629544561,
"user_id": "6120e070155b81197607c507"
}