POST api/User/SaveAdvertisementReward

Request Information

URI Parameters

None.

Body Parameters

AddAdvertismentReward
NameDescriptionTypeAdditional information
UserId

integer

Required

RewardAmount

decimal number

Required

Range: inclusive between 1 and 2147483647

Request Formats

application/json, text/json

Sample:
{
  "UserId": 1,
  "RewardAmount": 2.0
}

application/xml, text/xml

Sample:
<AddAdvertismentReward xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/KingChan.Model">
  <RewardAmount>2</RewardAmount>
  <UserId>1</UserId>
</AddAdvertismentReward>

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

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.