POST api/Ems/UpdateCheatSetting

Request Information

URI Parameters

None.

Body Parameters

CheatSetting
NameDescriptionTypeAdditional information
ExamCourseId

string

None.

ScoreType

integer

None.

Score

decimal number

None.

Percent

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "ExamCourseId": "sample string 1",
  "ScoreType": 2,
  "Score": 3.0,
  "Percent": 4.0
}

text/xml

Sample:
<CheatSetting xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ems.Domain.Ems.Entities">
  <ExamCourseId>sample string 1</ExamCourseId>
  <Percent>4</Percent>
  <Score>3</Score>
  <ScoreType>2</ScoreType>
</CheatSetting>

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

Response Information

Resource Description

ServiceResult
NameDescriptionTypeAdditional information
RetCode

integer

None.

Msg

string

None.

Result

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "RetCode": 1,
  "Msg": "sample string 2",
  "Result": {}
}

text/xml

Sample:
<ServiceResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tdf.Utils.Networking">
  <Msg>sample string 2</Msg>
  <Result />
  <RetCode>1</RetCode>
</ServiceResult>