POST api/sales/lead/task/new?token={token}

Create a new task for an existing lead

Request Information

URI Parameters

NameDescriptionTypeAdditional information
token

string

Required

Body Parameters

TaskData
NameDescriptionTypeAdditional information
TaskID

Pass 0 for new task

integer

Required

LeadID

Pass 0 when creating with new lead

integer

Required

TaskTypeID

integer

Required

TaskForUserID

integer

Required

TaskDateTime

date

Required

Data type: DateTime

Completed

boolean

None.

Cancelled

boolean

None.

Important

boolean

None.

TaskNote

max 50 characters

string

None.

TaskLocation

max 50 characters

string

None.

Request Formats

application/json, text/json

Sample:
{
  "TaskID": 1,
  "LeadID": 2,
  "TaskTypeID": 3,
  "TaskForUserID": 4,
  "TaskDateTime": "2026-01-08T11:19:29.9490987+00:00",
  "Completed": true,
  "Cancelled": true,
  "Important": true,
  "TaskNote": "sample string 9",
  "TaskLocation": "sample string 10"
}

application/xml, text/xml

Sample:
<TaskData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UltraSoftBIS_REST_API_Sales.Models">
  <Cancelled>true</Cancelled>
  <Completed>true</Completed>
  <Important>true</Important>
  <LeadID>2</LeadID>
  <TaskDateTime>2026-01-08T11:19:29.9490987+00:00</TaskDateTime>
  <TaskForUserID>4</TaskForUserID>
  <TaskID>1</TaskID>
  <TaskLocation>sample string 10</TaskLocation>
  <TaskNote>sample string 9</TaskNote>
  <TaskTypeID>3</TaskTypeID>
</TaskData>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.