POST api/campaign/{name}/plus/filter
Add the results of a product filter to a campaign as campaign plus
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| name |
Campaign name |
string |
Required |
Body Parameters
Product filter request object
CampaignPluFilterRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Filter | ProductFilter |
None. |
|
| NewPrice |
If not null, the new price to apply with campaign |
decimal number |
None. |
| NewCost |
If not null, the new cost to apply with campaign |
decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"filter": {
"$id": "2",
"utcOffset": 1.1,
"matches": [
{
"$id": "3",
"matchFilterType": 1,
"match": {
"$id": "4"
},
"matchMode": true,
"matchDecimal": 3.1,
"matchList": [
{
"$id": "5"
},
{
"$id": "6"
}
],
"matchCompare": 0,
"matchStringCompare": 0,
"matchJoin": 1,
"subDepartmentMatch": {
"$id": "7"
},
"minorDepartmentMatch": {
"$id": "8"
},
"lesserDepartmentMatch": {
"$id": "9"
}
},
{
"$ref": "3"
}
]
},
"newPrice": 1.1,
"newCost": 1.1
}
application/xml, text/xml
Sample:
<CampaignPluFilterRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EziManager.Models.EMC.Campaigns">
<Filter xmlns:d2p1="http://schemas.datacontract.org/2004/07/EziManager.Models.EMC.Reports">
<d2p1:Matches>
<d2p1:ProductFilterMatch>
<d2p1:LesserDepartmentMatch />
<d2p1:Match />
<d2p1:MatchCompare>Equals</d2p1:MatchCompare>
<d2p1:MatchDecimal>3.1</d2p1:MatchDecimal>
<d2p1:MatchFilterType>1</d2p1:MatchFilterType>
<d2p1:MatchJoin>1</d2p1:MatchJoin>
<d2p1:MatchList xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:anyType />
<d5p1:anyType />
</d2p1:MatchList>
<d2p1:MatchMode>true</d2p1:MatchMode>
<d2p1:MatchStringCompare>Like</d2p1:MatchStringCompare>
<d2p1:MinorDepartmentMatch />
<d2p1:SubDepartmentMatch />
</d2p1:ProductFilterMatch>
<d2p1:ProductFilterMatch>
<d2p1:LesserDepartmentMatch />
<d2p1:Match />
<d2p1:MatchCompare>Equals</d2p1:MatchCompare>
<d2p1:MatchDecimal>3.1</d2p1:MatchDecimal>
<d2p1:MatchFilterType>1</d2p1:MatchFilterType>
<d2p1:MatchJoin>1</d2p1:MatchJoin>
<d2p1:MatchList xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:anyType />
<d5p1:anyType />
</d2p1:MatchList>
<d2p1:MatchMode>true</d2p1:MatchMode>
<d2p1:MatchStringCompare>Like</d2p1:MatchStringCompare>
<d2p1:MinorDepartmentMatch />
<d2p1:SubDepartmentMatch />
</d2p1:ProductFilterMatch>
</d2p1:Matches>
<d2p1:UTCOffset>1.1</d2p1:UTCOffset>
</Filter>
<NewCost>1.1</NewCost>
<NewPrice>1.1</NewPrice>
</CampaignPluFilterRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.