POST Questions
Add a new question from the user to the new question log. User Authorization Optional.
Request Information
URI Parameters
None.
Body Parameters
The new question.
NewQuestionFromUserName | Description | Type | Additional information |
---|---|---|---|
UserId |
Optional. |
integer |
None. |
FirstName |
Optional. (Character limit 256) |
string |
None. |
LastName |
Optional. (Character limit 256) |
string |
None. |
Optional. (Character limit 256) |
string |
None. |
|
Question |
Required. The question text. (Limit characters to 190.) |
string |
None. |
Answer |
Required. The answer number (1-4) |
integer |
None. |
Choice1 |
Required. Choice text. (Limit characters to 65.) |
string |
None. |
Choice2 |
Required. Choice text. (Limit characters to 65.) |
string |
None. |
Choice3 |
Required. Choice text. (Limit characters to 65.) |
string |
None. |
Choice4 |
Required. Choice text. (Limit characters to 65.) |
string |
None. |
BookId |
Optional. |
integer |
None. |
CategoryId |
Optional. |
integer |
None. |
Chapter |
Optional. |
integer |
None. |
StartVerse |
Optional. |
integer |
None. |
EndVerse |
Optional. |
integer |
None. |
Comment |
Optional. (Character limit 512) |
string |
None. |
ApiUrl | Link |
None. |
|
ResourceObjectType | string |
None. |
Request Formats
application/json, text/json
{ "userId": 1, "firstName": "sample string 1", "lastName": "sample string 2", "email": "sample string 3", "question": "sample string 4", "answer": 5, "choice1": "sample string 6", "choice2": "sample string 7", "choice3": "sample string 8", "choice4": "sample string 9", "bookId": 1, "categoryId": 1, "chapter": 1, "startVerse": 1, "endVerse": 1, "comment": "sample string 10", "resourceObjectType": "newQuestionFromUser" }
application/xml, text/xml
<NewQuestionFromUser xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <ApiUrl i:nil="true" /> <ResourceObjectType>newQuestionFromUser</ResourceObjectType> <Answer>5</Answer> <BookId>1</BookId> <CategoryId>1</CategoryId> <Chapter>1</Chapter> <Choice1>sample string 6</Choice1> <Choice2>sample string 7</Choice2> <Choice3>sample string 8</Choice3> <Choice4>sample string 9</Choice4> <Comment>sample string 10</Comment> <Email>sample string 3</Email> <EndVerse>1</EndVerse> <FirstName>sample string 1</FirstName> <LastName>sample string 2</LastName> <Question>sample string 4</Question> <StartVerse>1</StartVerse> <UserId>1</UserId> </NewQuestionFromUser>
application/x-www-form-urlencoded
Response Information
Resource Description
Information about if the log entry was created or if there was an error.
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
{ "resultType": { "code": 0, "message": "Success" }, "messages": [ "sample string 1", "sample string 2" ], "links": {}, "apiBaseUrl": "sample string 1", "responseObjectType": "apiResponse" }
application/xml, text/xml
<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>