POST answers
Post user's answer to a question. User Authorization Required.
Request Information
URI Parameters
None.
Body Parameters
The question Id and answer.
UserAnswerName | Description | Type | Additional information |
---|---|---|---|
QuestionId | integer |
None. |
|
Answer | integer |
None. |
|
ApiUrl | Link |
None. |
|
ResourceObjectType | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "questionId": 1, "answer": 2, "resourceObjectType": "userAnswer" }
application/xml, text/xml
Sample:
<UserAnswer xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <ApiUrl i:nil="true" /> <ResourceObjectType>userAnswer</ResourceObjectType> <Answer>2</Answer> <QuestionId>1</QuestionId> </UserAnswer>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ApiResponse indicating if the answer was logged correctly.
ApiResponseName | Description | Type | Additional information |
---|---|---|---|
ResultType | ResultType |
None. |
|
Messages | Collection of string |
None. |
|
Links | Links |
None. |
|
ApiBaseUrl | string |
None. |
|
responseObjectType | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "resultType": { "code": 0, "message": "Success" }, "messages": [ "sample string 1", "sample string 2" ], "links": {}, "apiBaseUrl": "sample string 1", "responseObjectType": "apiResponse" }
application/xml, text/xml
Sample:
<ApiResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <ApiBaseUrl>sample string 1</ApiBaseUrl> <Links> <First i:nil="true" /> <Last i:nil="true" /> <Next i:nil="true" /> <Previous i:nil="true" /> <Self i:nil="true" /> </Links> <Messages xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </Messages> <ResultType> <Code>Success</Code> <Message>Success</Message> </ResultType> <responseObjectType>apiResponse</responseObjectType> </ApiResponse>