POST api/Leads/AddCampaign
Request Information
URI Parameters
None.
Body Parameters
Campaign| Name | Description | Type | Additional information |
|---|---|---|---|
| Campaign_code | integer |
None. |
|
| Campaign_name | string |
Required String length: inclusive between 0 and 50 |
|
| From_date | date |
None. |
|
| To_date | date |
None. |
|
| Cost | decimal number |
Range: inclusive between 0 and 99999999999.99 |
|
| Remark | string |
String length: inclusive between 0 and 200 |
|
| Interface_code | string |
String length: inclusive between 0 and 10 |
|
| Active | string |
Matching regular expression pattern: ^[yn]{1}$ String length: inclusive between 0 and 1 |
Request Formats
application/json, text/json
Sample:
{
"Campaign_code": 1,
"Campaign_name": "sample string 2",
"From_date": "2026-04-17T15:06:11.5085151+03:00",
"To_date": "2026-04-17T15:06:11.5085151+03:00",
"Cost": 1.0,
"Remark": "sample string 3",
"Interface_code": "sample string 4",
"Active": "sample string 5"
}
application/xml, text/xml
Sample:
<Campaign xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CustDemog"> <Active>sample string 5</Active> <Campaign_code>1</Campaign_code> <Campaign_name>sample string 2</Campaign_name> <Cost>1</Cost> <From_date>2026-04-17T15:06:11.5085151+03:00</From_date> <Interface_code>sample string 4</Interface_code> <Remark>sample string 3</Remark> <To_date>2026-04-17T15:06:11.5085151+03:00</To_date> </Campaign>
application/x-www-form-urlencoded
Sample:
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.
Response Information
Resource Description
integerResponse Formats
application/json, text/json
Sample:
1
application/xml, text/xml
Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.