POST api/Ems/UpdateExam

修改

Request Information

URI Parameters

None.

Body Parameters

UpdateExamCommand
NameDescriptionTypeAdditional information
ExamId

string

None.

ExamName

string

Required

ExamType

integer

Required

Grade

integer

Required

StartDate

date

None.

EndDate

date

None.

DispOrder

integer

None.

UserId

string

None.

OrgId

string

None.

ExecutionResult

ServiceResult

None.

Request Formats

application/json, text/json

Sample:
{
  "ExamId": "sample string 1",
  "ExamName": "sample string 2",
  "ExamType": 1,
  "Grade": 1,
  "StartDate": "2025-05-03T12:06:53.8635405+08:00",
  "EndDate": "2025-05-03T12:06:53.8640418+08:00",
  "DispOrder": 1,
  "UserId": "sample string 3",
  "OrgId": "sample string 4",
  "ExecutionResult": {
    "RetCode": 1,
    "Msg": "sample string 2",
    "Result": {}
  }
}

text/xml

Sample:
<UpdateExamCommand xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ems.Domain.Ems.Commands">
  <DispOrder>1</DispOrder>
  <EndDate>2025-05-03T12:06:53.8640418+08:00</EndDate>
  <ExamId>sample string 1</ExamId>
  <ExamName>sample string 2</ExamName>
  <ExamType>1</ExamType>
  <ExecutionResult xmlns:d2p1="http://schemas.datacontract.org/2004/07/Tdf.Utils.Networking">
    <d2p1:Msg>sample string 2</d2p1:Msg>
    <d2p1:Result />
    <d2p1:RetCode>1</d2p1:RetCode>
  </ExecutionResult>
  <Grade>1</Grade>
  <OrgId>sample string 4</OrgId>
  <StartDate>2025-05-03T12:06:53.8635405+08:00</StartDate>
  <UserId>sample string 3</UserId>
</UpdateExamCommand>

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

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>