CreateTask Function Definition
The CreateTask function is used to add a task in your CRM. You can optionally attach tasks to contacts and assign them to other users.
When calling this function, the Function parameter sent to the API should be CreateTask.
DueDate - The date the task is due. If you enter it in the past, it will show up as an overdue task. The format should be YYYY-MM-DD
Name - The name of the task. This is generally something like "Follow up with John Doe."
Description - Optional. Any additional information related to this task.
ContactId - Optional. The Id of a the contact this task is related to. Here are instructions for finding the correct ContactId. *Note: ContactId should be treated like a string, NOT an integer or any other number type.*
AssignedTo - Optional. If you want to assign this task to another user, pass their UserId using this parameter. Here are instructions for finding the correct UserId.
This code shows you how to add a task using the API.