POST SiteIncentivesActivity/{activityID}/CreditValues

Create the Credit Values for the Site Incentives Activity.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
activityID

Site Incentives Activity ID

integer

Required

Body Parameters

List of SiteIncentivesActivityCreditModel

Collection of SiteIncentivesActivityCreditModel
NameDescriptionTypeAdditional information
CountryID

integer

Required

Range: inclusive between 1 and 2147483647

Credit

decimal number

Required

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

Request Formats

application/json, text/json

Sample:
[
  {
    "CountryID": 1,
    "Credit": 2.1
  },
  {
    "CountryID": 1,
    "Credit": 2.1
  }
]

text/html

Sample:
[{"CountryID":1,"Credit":2.1},{"CountryID":1,"Credit":2.1}]

application/xml, text/xml

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

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 'List`1'.

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.