POST api/Activity/AddActivityTaskLead

Request Information

URI Parameters

None.

Body Parameters

ActivityTaskLead
NameDescriptionTypeAdditional information
lead_id

integer

Required

level_id

integer

None.

call_purpose_id

integer

Required

subject

string

Required

String length: inclusive between 0 and 150

due_date

date

Required

Data type: Date

start_date

date

Required

Data type: Date

end_date

date

Required

Data type: Date

start_time

date

Required

Data type: Time

end_time

date

Required

Data type: Time

priority_id

integer

Required

account_id

integer

None.

reminder_id

integer

Required

reminder_on

date

Required

alert_id

integer

Required

repeat_id

integer

Required

repeat_type_id

integer

Required

repeat_end_date

date

Required

geo_lat

string

Required

String length: inclusive between 0 and 50

geo_lon

string

Required

String length: inclusive between 0 and 50

description

string

Required

String length: inclusive between 0 and 200

user_id

integer

Required

related_to

integer

Required

related_parent

integer

None.

activity_status_id

integer

Required

Request Formats

application/json, text/json

Sample:
{
  "lead_id": 1,
  "level_id": 1,
  "call_purpose_id": 1,
  "subject": "sample string 1",
  "due_date": "2025-10-29T02:29:04.3412818+07:00",
  "start_date": "2025-10-29T02:29:04.3422768+07:00",
  "end_date": "2025-10-29T02:29:04.3422768+07:00",
  "start_time": "2025-10-29T02:29:04.3422768+07:00",
  "end_time": "2025-10-29T02:29:04.3422768+07:00",
  "priority_id": 1,
  "account_id": 1,
  "reminder_id": 1,
  "reminder_on": "2025-10-29T02:29:04.3422768+07:00",
  "alert_id": 1,
  "repeat_id": 1,
  "repeat_type_id": 1,
  "repeat_end_date": "2025-10-29T02:29:04.3422768+07:00",
  "geo_lat": "sample string 2",
  "geo_lon": "sample string 3",
  "description": "sample string 4",
  "user_id": 1,
  "related_to": 1,
  "related_parent": 1,
  "activity_status_id": 1
}

application/xml, text/xml

Sample:
<ActivityTaskLead xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/apicrm.Entities">
  <account_id>1</account_id>
  <activity_status_id>1</activity_status_id>
  <alert_id>1</alert_id>
  <call_purpose_id>1</call_purpose_id>
  <description>sample string 4</description>
  <due_date>2025-10-29T02:29:04.3412818+07:00</due_date>
  <end_date>2025-10-29T02:29:04.3422768+07:00</end_date>
  <end_time>2025-10-29T02:29:04.3422768+07:00</end_time>
  <geo_lat>sample string 2</geo_lat>
  <geo_lon>sample string 3</geo_lon>
  <lead_id>1</lead_id>
  <level_id>1</level_id>
  <priority_id>1</priority_id>
  <related_parent>1</related_parent>
  <related_to>1</related_to>
  <reminder_id>1</reminder_id>
  <reminder_on>2025-10-29T02:29:04.3422768+07:00</reminder_on>
  <repeat_end_date>2025-10-29T02:29:04.3422768+07:00</repeat_end_date>
  <repeat_id>1</repeat_id>
  <repeat_type_id>1</repeat_type_id>
  <start_date>2025-10-29T02:29:04.3422768+07:00</start_date>
  <start_time>2025-10-29T02:29:04.3422768+07:00</start_time>
  <subject>sample string 1</subject>
  <user_id>1</user_id>
</ActivityTaskLead>

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.