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

Update 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

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html, application/xml, text/xml

Sample:

Sample not available.

application/bson

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