POST api/Campaign/UpdateCampaign
Update campaign
Request Information
URI Parameters
None.
Body Parameters
Campaign object to update
Campaign| Name | Description | Type | Additional information |
|---|---|---|---|
| Code | string |
None. |
|
| Enabled | boolean |
None. |
|
| ExtraWithdrawalDays | integer |
None. |
|
| Id | integer |
None. |
|
| Name | string |
None. |
|
| PackageVillaInvoice1Value | decimal number |
None. |
|
| PackageVillaInvoice2Value | decimal number |
None. |
|
| PackageApartmentInvoice1Value | decimal number |
None. |
|
| PackageApartmentInvoice2Value | decimal number |
None. |
|
| PackageCabinInvoice1Value | decimal number |
None. |
|
| PackageCabinInvoice2Value | decimal number |
None. |
|
| PackageGarageInvoice1Value | decimal number |
None. |
|
| PackageGarageInvoice2Value | decimal number |
None. |
|
| PackageTrailerInvoice1Value | decimal number |
None. |
|
| PackageTrailerInvoice2Value | decimal number |
None. |
|
| PackageCompanyInvoice1Value | decimal number |
None. |
|
| PackageCompanyInvoice2Value | decimal number |
None. |
|
| Type | Types |
None. |
Request Formats
application/json, text/json
Sample:
{
"Code": "sample string 1",
"Enabled": true,
"ExtraWithdrawalDays": 3,
"Id": 4,
"Name": "sample string 5",
"PackageVillaInvoice1Value": 6.1,
"PackageVillaInvoice2Value": 7.1,
"PackageApartmentInvoice1Value": 8.1,
"PackageApartmentInvoice2Value": 9.1,
"PackageCabinInvoice1Value": 10.1,
"PackageCabinInvoice2Value": 11.1,
"PackageGarageInvoice1Value": 12.1,
"PackageGarageInvoice2Value": 13.1,
"PackageTrailerInvoice1Value": 14.1,
"PackageTrailerInvoice2Value": 15.1,
"PackageCompanyInvoice1Value": 16.1,
"PackageCompanyInvoice2Value": 17.1,
"Type": 0
}
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Updated campaign object
ResponseOfCampaign| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | Campaign |
None. |
|
| Result | boolean |
None. |
|
| Message | string |
None. |
|
| Errors | Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"Data": {
"$id": "2",
"Code": "sample string 1",
"Enabled": true,
"ExtraWithdrawalDays": 3,
"Id": 4,
"Name": "sample string 5",
"PackageVillaInvoice1Value": 6.1,
"PackageVillaInvoice2Value": 7.1,
"PackageApartmentInvoice1Value": 8.1,
"PackageApartmentInvoice2Value": 9.1,
"PackageCabinInvoice1Value": 10.1,
"PackageCabinInvoice2Value": 11.1,
"PackageGarageInvoice1Value": 12.1,
"PackageGarageInvoice2Value": 13.1,
"PackageTrailerInvoice1Value": 14.1,
"PackageTrailerInvoice2Value": 15.1,
"PackageCompanyInvoice1Value": 16.1,
"PackageCompanyInvoice2Value": 17.1,
"Type": 0
},
"Result": true,
"Message": "sample string 2",
"Errors": {
"$id": "3"
}
}