PUT SiteIncentivesActivity/{activityID}/SetTranslations

Save Translations of the Site Incentives Activity.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
activityID

Site Incentives Activity ID

integer

Required

Body Parameters

List of Translation Models

Collection of SiteIncentivesActivityTranslationModel
NameDescriptionTypeAdditional information
CultureID

integer

Required

Range: inclusive between 1 and 32767

Translation

string

Required

Max length: 128

Request Formats

application/json, text/json

Sample:
[
  {
    "CultureID": 1,
    "Translation": "sample string 2"
  },
  {
    "CultureID": 1,
    "Translation": "sample string 2"
  }
]

text/html

Sample:
[{"CultureID":1,"Translation":"sample string 2"},{"CultureID":1,"Translation":"sample string 2"}]

application/xml, text/xml

Sample:
<ArrayOfSiteIncentivesActivityTranslationModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Toluna.TEF.Common.ViewModels.Incentives">
  <SiteIncentivesActivityTranslationModel>
    <CultureID>1</CultureID>
    <Translation>sample string 2</Translation>
  </SiteIncentivesActivityTranslationModel>
  <SiteIncentivesActivityTranslationModel>
    <CultureID>1</CultureID>
    <Translation>sample string 2</Translation>
  </SiteIncentivesActivityTranslationModel>
</ArrayOfSiteIncentivesActivityTranslationModel>

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.