POST api/campaign/{name}/pools/filter

Add the results of a product filter to a campaign as campaign pools

Request Information

URI Parameters

NameDescriptionTypeAdditional information
name

Campaign name

string

Required

Body Parameters

Product filter to use

ProductFilter
NameDescriptionTypeAdditional information
UTCOffset

decimal number

None.

Matches

Collection of ProductFilterMatch

None.

Request Formats

application/json, text/json

Sample:
{
  "utcOffset": 1.1,
  "matches": [
    {
      "$id": "2",
      "matchFilterType": 1,
      "match": {
        "$id": "3"
      },
      "matchMode": true,
      "matchDecimal": 3.1,
      "matchList": [
        {
          "$id": "4"
        },
        {
          "$id": "5"
        }
      ],
      "matchCompare": 0,
      "matchStringCompare": 0,
      "matchJoin": 1,
      "subDepartmentMatch": {
        "$id": "6"
      },
      "minorDepartmentMatch": {
        "$id": "7"
      },
      "lesserDepartmentMatch": {
        "$id": "8"
      }
    },
    {
      "$ref": "2"
    }
  ]
}

application/xml, text/xml

Sample:
<ProductFilter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EziManager.Models.EMC.Reports">
  <Matches>
    <ProductFilterMatch>
      <LesserDepartmentMatch />
      <Match />
      <MatchCompare>Equals</MatchCompare>
      <MatchDecimal>3.1</MatchDecimal>
      <MatchFilterType>1</MatchFilterType>
      <MatchJoin>1</MatchJoin>
      <MatchList xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:anyType />
        <d4p1:anyType />
      </MatchList>
      <MatchMode>true</MatchMode>
      <MatchStringCompare>Like</MatchStringCompare>
      <MinorDepartmentMatch />
      <SubDepartmentMatch />
    </ProductFilterMatch>
    <ProductFilterMatch>
      <LesserDepartmentMatch />
      <Match />
      <MatchCompare>Equals</MatchCompare>
      <MatchDecimal>3.1</MatchDecimal>
      <MatchFilterType>1</MatchFilterType>
      <MatchJoin>1</MatchJoin>
      <MatchList xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:anyType />
        <d4p1:anyType />
      </MatchList>
      <MatchMode>true</MatchMode>
      <MatchStringCompare>Like</MatchStringCompare>
      <MinorDepartmentMatch />
      <SubDepartmentMatch />
    </ProductFilterMatch>
  </Matches>
  <UTCOffset>1.1</UTCOffset>
</ProductFilter>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.