sfgboxapi

<back to all web services

QuestionnairsQuestionsAutoQueryEdit

QuestionnairsQuestions Parameters:
NameParameterData TypeRequiredDescription
IdformlongYes
QuestionnairsIdformlongYes
QuestionformstringYes
Answer1formstringYes
Answer2formstringYes
Answer3formstringNo
Answer4formstringNo
Answer5formstringNo
CorrectAnswerformintYes
QuestionnairsQuestions Parameters:
NameParameterData TypeRequiredDescription
IdformlongYes
QuestionnairsIdformlongYes
QuestionformstringYes
Answer1formstringYes
Answer2formstringYes
Answer3formstringNo
Answer4formstringNo
Answer5formstringNo
CorrectAnswerformintYes

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /jsonl/reply/QuestionnairsQuestionsAutoQueryEdit HTTP/1.1 
Host: api-stage.smartfarmertech.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"id":0,"questionnairsId":0,"question":"String","answer1":"String","answer2":"String","answer3":"String","answer4":"String","answer5":"String","correctAnswer":0}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"id":0,"questionnairsId":0,"question":"String","answer1":"String","answer2":"String","answer3":"String","answer4":"String","answer5":"String","correctAnswer":0}