| PUT | /questionnairs_questions/{Id} |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | path | long | Yes | |
| QuestionnairsId | body | long | Yes | |
| Question | body | string | Yes | |
| Answer1 | body | string | Yes | |
| Answer2 | body | string | Yes | |
| Answer3 | body | string | No | |
| Answer4 | body | string | No | |
| Answer5 | body | string | No | |
| CorrectAnswer | body | int | Yes |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | long | No | |
| QuestionnairsId | form | long | No | |
| Question | form | string | No | |
| Answer1 | form | string | No | |
| Answer2 | form | string | No | |
| Answer3 | form | string | No | |
| Answer4 | form | string | No | |
| Answer5 | form | string | No | |
| CorrectAnswer | form | int | No | |
| ResponseStatus | form | ResponseStatus | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /questionnairs_questions/{Id} HTTP/1.1
Host: api.sfgtec.com
Accept: application/json
Content-Type: application/json
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: application/json
Content-Length: length
{"id":0,"questionnairsId":0,"question":"String","answer1":"String","answer2":"String","answer3":"String","answer4":"String","answer5":"String","correctAnswer":0,"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}