POST CRM/insertcollection
Insert a Task in CRM
Request Information
URI Parameters
None.
Body Parameters
InsertCRMTaskRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| customerids | Collection of decimal number |
None. |
|
| branchid | decimal number |
None. |
|
| schedule_datetime | date |
None. |
|
| notes | string |
None. |
|
| userid | decimal number |
None. |
|
| crmoperationtypeid | decimal number |
None. |
|
| crmgoaltypeid | decimal number |
None. |
|
| tagids | Collection of decimal number |
None. |
|
| crmgoaldescription | string |
None. |
|
| crmoutcomeid | decimal number |
None. |
|
| isnote | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"customerids": [
1.0,
2.0
],
"branchid": 1.0,
"schedule_datetime": "2025-11-02T03:50:30.5608892+01:00",
"notes": "sample string 3",
"userid": 1.0,
"crmoperationtypeid": 4.0,
"crmgoaltypeid": 1.0,
"tagids": [
1.0,
2.0
],
"crmgoaldescription": "sample string 5",
"crmoutcomeid": 1.0,
"isnote": true
}
application/xml, text/xml
Sample:
<InsertCRMTaskRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Sportrick.ApiModel.Requests">
<branchid>1</branchid>
<crmgoaldescription>sample string 5</crmgoaldescription>
<crmgoaltypeid>1</crmgoaltypeid>
<crmoperationtypeid>4</crmoperationtypeid>
<crmoutcomeid>1</crmoutcomeid>
<customerids xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:decimal>1</d2p1:decimal>
<d2p1:decimal>2</d2p1:decimal>
</customerids>
<isnote>true</isnote>
<notes>sample string 3</notes>
<schedule_datetime>2025-11-02T03:50:30.5608892+01:00</schedule_datetime>
<tagids xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:decimal>1</d2p1:decimal>
<d2p1:decimal>2</d2p1:decimal>
</tagids>
<userid>1</userid>
</InsertCRMTaskRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
InsertCRMTaskResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| success | boolean |
None. |
|
| msg | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"success": true,
"msg": "sample string 2"
}
application/xml, text/xml
Sample:
<InsertCRMTaskResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Sportrick.ApiModel.Responses"> <msg>sample string 2</msg> <success>true</success> </InsertCRMTaskResponse>