POST Brands/{brandID}/SiteIncentiveData

Add an Site Incentive Data.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
brandID

Brand ID

integer

Required

Body Parameters

AddSiteIncentiveDataModel

InputSiteIncentiveDataModel
NameDescriptionTypeAdditional information
IncentiveActivityID

integer

Required

Range: inclusive between 1 and 32767

CreditAmount

decimal number

Required

Range: inclusive between 4.94065645841247E-324 and 1.79769313486232E+308

Request Formats

application/json, text/json

Sample:
{
  "IncentiveActivityID": 1,
  "CreditAmount": 2.1
}

text/html

Sample:
{"IncentiveActivityID":1,"CreditAmount":2.1}

application/xml, text/xml

Sample:
<InputSiteIncentiveDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Toluna.TEF.Common.ViewModels.Incentives">
  <CreditAmount>2.1</CreditAmount>
  <IncentiveActivityID>1</IncentiveActivityID>
</InputSiteIncentiveDataModel>

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 'InputSiteIncentiveDataModel'.

application/bson

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

Response Information

Resource Description

Site Incentive Data Model

OutputSiteIncentiveDataModel
NameDescriptionTypeAdditional information
SiteIncentiveDataID

integer

None.

BrandID

integer

None.

CountryID

integer

None.

IncentiveActivityID

integer

Required

Range: inclusive between 1 and 32767

CreditAmount

decimal number

Required

Range: inclusive between 4.94065645841247E-324 and 1.79769313486232E+308

Response Formats

application/json, text/json

Sample:
{
  "SiteIncentiveDataID": 1,
  "BrandID": 2,
  "CountryID": 3,
  "IncentiveActivityID": 4,
  "CreditAmount": 5.1
}

text/html

Sample:
{"SiteIncentiveDataID":1,"BrandID":2,"CountryID":3,"IncentiveActivityID":4,"CreditAmount":5.1}

application/xml, text/xml

Sample:
<OutputSiteIncentiveDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Toluna.TEF.Common.ViewModels.Incentives">
  <CreditAmount>5.1</CreditAmount>
  <IncentiveActivityID>4</IncentiveActivityID>
  <BrandID>2</BrandID>
  <CountryID>3</CountryID>
  <SiteIncentiveDataID>1</SiteIncentiveDataID>
</OutputSiteIncentiveDataModel>

application/bson

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