POST Brands/{brandID}/Countries/{countryID}/TieredIncentivesGrid

Create Tiered Incentives Grid for the Brand and Country.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
brandID

Brand ID

integer

Required

countryID

Country ID

integer

Required

Body Parameters

Input Tiered Incentives Grid Model

InputTieredIncentivesGridModel
NameDescriptionTypeAdditional information
Levels

Collection of TIGLevelModel

Required

AllowedSurveyStatuses

Collection of SurveyParticipationStatus

Required

Request Formats

application/json, text/json

Sample:
{
  "Levels": [
    {
      "Level": 64,
      "SubLevels": [
        {
          "SubLevel": 64,
          "Values": [
            {
              "SurveyStatus": 1,
              "CreditValue": 1.1
            },
            {
              "SurveyStatus": 1,
              "CreditValue": 1.1
            }
          ]
        },
        {
          "SubLevel": 64,
          "Values": [
            {
              "SurveyStatus": 1,
              "CreditValue": 1.1
            },
            {
              "SurveyStatus": 1,
              "CreditValue": 1.1
            }
          ]
        }
      ]
    },
    {
      "Level": 64,
      "SubLevels": [
        {
          "SubLevel": 64,
          "Values": [
            {
              "SurveyStatus": 1,
              "CreditValue": 1.1
            },
            {
              "SurveyStatus": 1,
              "CreditValue": 1.1
            }
          ]
        },
        {
          "SubLevel": 64,
          "Values": [
            {
              "SurveyStatus": 1,
              "CreditValue": 1.1
            },
            {
              "SurveyStatus": 1,
              "CreditValue": 1.1
            }
          ]
        }
      ]
    }
  ],
  "AllowedSurveyStatuses": [
    1,
    1
  ]
}

text/html

Sample:
{"Levels":[{"Level":64,"SubLevels":[{"SubLevel":64,"Values":[{"SurveyStatus":1,"CreditValue":1.1},{"SurveyStatus":1,"CreditValue":1.1}]},{"SubLevel":64,"Values":[{"SurveyStatus":1,"CreditValue":1.1},{"SurveyStatus":1,"CreditValue":1.1}]}]},{"Level":64,"SubLevels":[{"SubLevel":64,"Values":[{"SurveyStatus":1,"CreditValue":1.1},{"SurveyStatus":1,"CreditValue":1.1}]},{"SubLevel":64,"Values":[{"SurveyStatus":1,"CreditValue":1.1},{"SurveyStatus":1,"CreditValue":1.1}]}]}],"AllowedSurveyStatuses":[1,1]}

application/xml, text/xml

Sample:
<InputTieredIncentivesGridModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Toluna.TEF.Common.ViewModels.Incentives">
  <AllowedSurveyStatuses>
    <SurveyParticipationStatus>Complete</SurveyParticipationStatus>
    <SurveyParticipationStatus>Complete</SurveyParticipationStatus>
  </AllowedSurveyStatuses>
  <Levels>
    <TIGLevelModel>
      <Level>64</Level>
      <SubLevels>
        <TIGSubLevelModel>
          <SubLevel>64</SubLevel>
          <Values>
            <TIGValueModel>
              <CreditValue>1.1</CreditValue>
              <SurveyStatus>Complete</SurveyStatus>
            </TIGValueModel>
            <TIGValueModel>
              <CreditValue>1.1</CreditValue>
              <SurveyStatus>Complete</SurveyStatus>
            </TIGValueModel>
          </Values>
        </TIGSubLevelModel>
        <TIGSubLevelModel>
          <SubLevel>64</SubLevel>
          <Values>
            <TIGValueModel>
              <CreditValue>1.1</CreditValue>
              <SurveyStatus>Complete</SurveyStatus>
            </TIGValueModel>
            <TIGValueModel>
              <CreditValue>1.1</CreditValue>
              <SurveyStatus>Complete</SurveyStatus>
            </TIGValueModel>
          </Values>
        </TIGSubLevelModel>
      </SubLevels>
    </TIGLevelModel>
    <TIGLevelModel>
      <Level>64</Level>
      <SubLevels>
        <TIGSubLevelModel>
          <SubLevel>64</SubLevel>
          <Values>
            <TIGValueModel>
              <CreditValue>1.1</CreditValue>
              <SurveyStatus>Complete</SurveyStatus>
            </TIGValueModel>
            <TIGValueModel>
              <CreditValue>1.1</CreditValue>
              <SurveyStatus>Complete</SurveyStatus>
            </TIGValueModel>
          </Values>
        </TIGSubLevelModel>
        <TIGSubLevelModel>
          <SubLevel>64</SubLevel>
          <Values>
            <TIGValueModel>
              <CreditValue>1.1</CreditValue>
              <SurveyStatus>Complete</SurveyStatus>
            </TIGValueModel>
            <TIGValueModel>
              <CreditValue>1.1</CreditValue>
              <SurveyStatus>Complete</SurveyStatus>
            </TIGValueModel>
          </Values>
        </TIGSubLevelModel>
      </SubLevels>
    </TIGLevelModel>
  </Levels>
</InputTieredIncentivesGridModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'InputTieredIncentivesGridModel'.

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.

Response Information

Resource Description

Output Tiered Incentives Grid Model

OutputTieredIncentivesGridModel
NameDescriptionTypeAdditional information
TieredIncentivesGridID

integer

None.

BrandID

integer

None.

CountryID

integer

None.

Levels

Collection of TIGLevelModel

Required

AllowedSurveyStatuses

Collection of SurveyParticipationStatus

Required

Response Formats

application/json, text/json

Sample:
{
  "TieredIncentivesGridID": 1,
  "BrandID": 2,
  "CountryID": 3,
  "Levels": [
    {
      "Level": 64,
      "SubLevels": [
        {
          "SubLevel": 64,
          "Values": [
            {
              "SurveyStatus": 1,
              "CreditValue": 1.1
            },
            {
              "SurveyStatus": 1,
              "CreditValue": 1.1
            }
          ]
        },
        {
          "SubLevel": 64,
          "Values": [
            {
              "SurveyStatus": 1,
              "CreditValue": 1.1
            },
            {
              "SurveyStatus": 1,
              "CreditValue": 1.1
            }
          ]
        }
      ]
    },
    {
      "Level": 64,
      "SubLevels": [
        {
          "SubLevel": 64,
          "Values": [
            {
              "SurveyStatus": 1,
              "CreditValue": 1.1
            },
            {
              "SurveyStatus": 1,
              "CreditValue": 1.1
            }
          ]
        },
        {
          "SubLevel": 64,
          "Values": [
            {
              "SurveyStatus": 1,
              "CreditValue": 1.1
            },
            {
              "SurveyStatus": 1,
              "CreditValue": 1.1
            }
          ]
        }
      ]
    }
  ],
  "AllowedSurveyStatuses": [
    1,
    1
  ]
}

text/html

Sample:
{"TieredIncentivesGridID":1,"BrandID":2,"CountryID":3,"Levels":[{"Level":64,"SubLevels":[{"SubLevel":64,"Values":[{"SurveyStatus":1,"CreditValue":1.1},{"SurveyStatus":1,"CreditValue":1.1}]},{"SubLevel":64,"Values":[{"SurveyStatus":1,"CreditValue":1.1},{"SurveyStatus":1,"CreditValue":1.1}]}]},{"Level":64,"SubLevels":[{"SubLevel":64,"Values":[{"SurveyStatus":1,"CreditValue":1.1},{"SurveyStatus":1,"CreditValue":1.1}]},{"SubLevel":64,"Values":[{"SurveyStatus":1,"CreditValue":1.1},{"SurveyStatus":1,"CreditValue":1.1}]}]}],"AllowedSurveyStatuses":[1,1]}

application/xml, text/xml

Sample:
<OutputTieredIncentivesGridModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Toluna.TEF.Common.ViewModels.Incentives">
  <AllowedSurveyStatuses>
    <SurveyParticipationStatus>Complete</SurveyParticipationStatus>
    <SurveyParticipationStatus>Complete</SurveyParticipationStatus>
  </AllowedSurveyStatuses>
  <Levels>
    <TIGLevelModel>
      <Level>64</Level>
      <SubLevels>
        <TIGSubLevelModel>
          <SubLevel>64</SubLevel>
          <Values>
            <TIGValueModel>
              <CreditValue>1.1</CreditValue>
              <SurveyStatus>Complete</SurveyStatus>
            </TIGValueModel>
            <TIGValueModel>
              <CreditValue>1.1</CreditValue>
              <SurveyStatus>Complete</SurveyStatus>
            </TIGValueModel>
          </Values>
        </TIGSubLevelModel>
        <TIGSubLevelModel>
          <SubLevel>64</SubLevel>
          <Values>
            <TIGValueModel>
              <CreditValue>1.1</CreditValue>
              <SurveyStatus>Complete</SurveyStatus>
            </TIGValueModel>
            <TIGValueModel>
              <CreditValue>1.1</CreditValue>
              <SurveyStatus>Complete</SurveyStatus>
            </TIGValueModel>
          </Values>
        </TIGSubLevelModel>
      </SubLevels>
    </TIGLevelModel>
    <TIGLevelModel>
      <Level>64</Level>
      <SubLevels>
        <TIGSubLevelModel>
          <SubLevel>64</SubLevel>
          <Values>
            <TIGValueModel>
              <CreditValue>1.1</CreditValue>
              <SurveyStatus>Complete</SurveyStatus>
            </TIGValueModel>
            <TIGValueModel>
              <CreditValue>1.1</CreditValue>
              <SurveyStatus>Complete</SurveyStatus>
            </TIGValueModel>
          </Values>
        </TIGSubLevelModel>
        <TIGSubLevelModel>
          <SubLevel>64</SubLevel>
          <Values>
            <TIGValueModel>
              <CreditValue>1.1</CreditValue>
              <SurveyStatus>Complete</SurveyStatus>
            </TIGValueModel>
            <TIGValueModel>
              <CreditValue>1.1</CreditValue>
              <SurveyStatus>Complete</SurveyStatus>
            </TIGValueModel>
          </Values>
        </TIGSubLevelModel>
      </SubLevels>
    </TIGLevelModel>
  </Levels>
  <BrandID>2</BrandID>
  <CountryID>3</CountryID>
  <TieredIncentivesGridID>1</TieredIncentivesGridID>
</OutputTieredIncentivesGridModel>

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.