POST v1/api/HrQu/SetInductionTestQu
设置入职小测试题目
Request Information
URI Parameters
None.
Body Parameters
InductionTestQuInputName | Description | Type | Additional information |
---|---|---|---|
usertoken |
token |
string |
None. |
questions |
问题 |
Collection of InductionTestQu |
None. |
Request Formats
application/json, text/json
Sample:
{ "usertoken": "sample string 1", "questions": [ { "question": "sample string 1", "Opts": [ { "optCode": "sample string 1", "optContent": "sample string 2" }, { "optCode": "sample string 1", "optContent": "sample string 2" } ] }, { "question": "sample string 1", "Opts": [ { "optCode": "sample string 1", "optContent": "sample string 2" }, { "optCode": "sample string 1", "optContent": "sample string 2" } ] } ] }
application/xml, text/xml
Sample:
<InductionTestQuInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WXProgramApi.Models.HrQuestions"> <questions> <InductionTestQu> <Opts> <InductionTestOpt> <optCode>sample string 1</optCode> <optContent>sample string 2</optContent> </InductionTestOpt> <InductionTestOpt> <optCode>sample string 1</optCode> <optContent>sample string 2</optContent> </InductionTestOpt> </Opts> <question>sample string 1</question> </InductionTestQu> <InductionTestQu> <Opts> <InductionTestOpt> <optCode>sample string 1</optCode> <optContent>sample string 2</optContent> </InductionTestOpt> <InductionTestOpt> <optCode>sample string 1</optCode> <optContent>sample string 2</optContent> </InductionTestOpt> </Opts> <question>sample string 1</question> </InductionTestQu> </questions> <usertoken>sample string 1</usertoken> </InductionTestQuInput>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
HrQuResponseDtoName | Description | Type | Additional information |
---|---|---|---|
errcode |
错误编码 2:error 401:鉴权失败;200:成功;500:内部错误; |
ErrCode |
None. |
message |
消息 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "errcode": 2, "message": "sample string 1" }
application/xml, text/xml
Sample:
<HrQuResponseDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WXProgramApi.Models.HrQuestions"> <errcode>Error</errcode> <message>sample string 1</message> </HrQuResponseDto>