POST api/tasks

Insert a Task.

Request Information

URI Parameters

None.

Body Parameters

TaskDto
NameDescriptionTypeAdditional information
Id

The primary key of the record in the Hobsons database. Ignored for POST requests sent to the API.

integer

None.

TaskTypeId

A reference to the primary key of the TaskType record that is associated with this record.

integer

Required

Range: inclusive between 1 and 99999999

Description

The task description.

string

Required

String length: inclusive between 0 and 1000

CrmNumber

A reference to the primary key of the Contact record that is associated with this record.

integer

Required

Range: inclusive between 1 and 2147483647

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "TaskTypeId": 2,
  "Description": "sample string 3",
  "CrmNumber": 1
}

Response Information

Resource Description

The primary key (id) of the record inserted in the Hobsons database.

integer

Response Formats

application/json, text/json

Sample:
1