PUT SiteIncentivesActivity/{id}

Update an Site Incentives Activity.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

SiteIncentivesActivityID

integer

Required

Body Parameters

UpdateSiteIncentivesActivityModel

UpdateSiteIncentivesActivityModel
NameDescriptionTypeAdditional information
InternalDisplay

string

Required

Max length: 256

MemberDisplay

string

Required

Max length: 128

DefaultCredit

decimal number

Required

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

IsActive

boolean

Required

ReferenceCode1

string

Max length: 32

ReferenceCode2

string

Max length: 32

Description

string

Max length: 512

Request Formats

application/json, text/json

Sample:
{
  "InternalDisplay": "sample string 1",
  "MemberDisplay": "sample string 2",
  "DefaultCredit": 3.1,
  "IsActive": true,
  "ReferenceCode1": "sample string 5",
  "ReferenceCode2": "sample string 6",
  "Description": "sample string 7"
}

text/html

Sample:
{"InternalDisplay":"sample string 1","MemberDisplay":"sample string 2","DefaultCredit":3.1,"IsActive":true,"ReferenceCode1":"sample string 5","ReferenceCode2":"sample string 6","Description":"sample string 7"}

application/xml, text/xml

Sample:
<UpdateSiteIncentivesActivityModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Toluna.TEF.Common.ViewModels.Incentives">
  <DefaultCredit>3.1</DefaultCredit>
  <Description>sample string 7</Description>
  <InternalDisplay>sample string 1</InternalDisplay>
  <IsActive>true</IsActive>
  <MemberDisplay>sample string 2</MemberDisplay>
  <ReferenceCode1>sample string 5</ReferenceCode1>
  <ReferenceCode2>sample string 6</ReferenceCode2>
</UpdateSiteIncentivesActivityModel>

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

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.