POST api/Activity/AddActivityPhysicalEventLead
Request Information
URI Parameters
None.
Body Parameters
ActivityPhysycalEventLead| Name | Description | Type | Additional information |
|---|---|---|---|
| activity_id | integer |
None. |
|
| lead_id | integer |
Required |
|
| level_id | integer |
None. |
|
| call_purpose_id | integer |
Required |
|
| subject | string |
Required String length: inclusive between 0 and 150 |
|
| call_type_id | integer |
None. |
|
| call_activity_id | integer |
None. |
|
| call_detail_id | integer |
None. |
|
| start_date | date |
Data type: Date |
|
| end_date | date |
Required Data type: Date |
|
| start_time | date |
Required Data type: Time |
|
| end_time | date |
Required Data type: Time |
|
| host_id | integer |
Required |
|
| geo_lat | string |
String length: inclusive between 0 and 50 |
|
| geo_lon | string |
String length: inclusive between 0 and 50 |
|
| description | string |
String length: inclusive between 0 and 200 |
|
| user_id | integer |
Required |
|
| contact_id | integer |
None. |
|
| reminder_id | integer |
None. |
|
| reminder_on | date |
None. |
|
| related_to | integer |
None. |
|
| alert_id | integer |
None. |
|
| street | string |
Required String length: inclusive between 0 and 200 |
|
| province_id | integer |
Required |
|
| city_id | integer |
Required |
|
| district_id | integer |
Required |
|
| transport_by_id | integer |
Required |
|
| cost | integer |
None. |
|
| distance | integer |
None. |
|
| zip_code | string |
None. |
|
| participants | Collection of DataPhysycal |
None. |
Request Formats
application/json, text/json
Sample:
{
"activity_id": 1,
"lead_id": 1,
"level_id": 1,
"call_purpose_id": 1,
"subject": "sample string 1",
"call_type_id": 1,
"call_activity_id": 1,
"call_detail_id": 1,
"start_date": "2025-10-29T02:14:13.2310479+07:00",
"end_date": "2025-10-29T02:14:13.2310479+07:00",
"start_time": "2025-10-29T02:14:13.2310479+07:00",
"end_time": "2025-10-29T02:14:13.2310479+07:00",
"host_id": 1,
"geo_lat": "sample string 2",
"geo_lon": "sample string 3",
"description": "sample string 4",
"user_id": 1,
"contact_id": 1,
"reminder_id": 1,
"reminder_on": "2025-10-29T02:14:13.2310479+07:00",
"related_to": 1,
"alert_id": 1,
"street": "sample string 5",
"province_id": 1,
"city_id": 1,
"district_id": 1,
"transport_by_id": 1,
"cost": 1,
"distance": 1,
"zip_code": "sample string 6",
"participants": [
{
"parent_id": 1,
"CreatedBy": 2,
"ModifiedBy": 3,
"level_id": 4,
"participant_name": "sample string 5",
"Email": "sample string 6"
},
{
"parent_id": 1,
"CreatedBy": 2,
"ModifiedBy": 3,
"level_id": 4,
"participant_name": "sample string 5",
"Email": "sample string 6"
}
]
}
application/xml, text/xml
Sample:
<ActivityPhysycalEventLead xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/apicrm.Entities">
<Participants>
<DataPhysycal>
<CreatedBy>2</CreatedBy>
<Email>sample string 6</Email>
<ModifiedBy>3</ModifiedBy>
<level_id>4</level_id>
<parent_id>1</parent_id>
<participant_name>sample string 5</participant_name>
</DataPhysycal>
<DataPhysycal>
<CreatedBy>2</CreatedBy>
<Email>sample string 6</Email>
<ModifiedBy>3</ModifiedBy>
<level_id>4</level_id>
<parent_id>1</parent_id>
<participant_name>sample string 5</participant_name>
</DataPhysycal>
</Participants>
<activity_id>1</activity_id>
<alert_id>1</alert_id>
<call_activity_id>1</call_activity_id>
<call_detail_id>1</call_detail_id>
<call_purpose_id>1</call_purpose_id>
<call_type_id>1</call_type_id>
<city_id>1</city_id>
<contact_id>1</contact_id>
<cost>1</cost>
<description>sample string 4</description>
<distance>1</distance>
<district_id>1</district_id>
<end_date>2025-10-29T02:14:13.2310479+07:00</end_date>
<end_time>2025-10-29T02:14:13.2310479+07:00</end_time>
<geo_lat>sample string 2</geo_lat>
<geo_lon>sample string 3</geo_lon>
<host_id>1</host_id>
<lead_id>1</lead_id>
<level_id>1</level_id>
<province_id>1</province_id>
<related_to>1</related_to>
<reminder_id>1</reminder_id>
<reminder_on>2025-10-29T02:14:13.2310479+07:00</reminder_on>
<start_date>2025-10-29T02:14:13.2310479+07:00</start_date>
<start_time>2025-10-29T02:14:13.2310479+07:00</start_time>
<street>sample string 5</street>
<subject>sample string 1</subject>
<transport_by_id>1</transport_by_id>
<user_id>1</user_id>
<zip_code>sample string 6</zip_code>
</ActivityPhysycalEventLead>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.