PUT api/Questionnaire/SaveQuestionnaireForBooking/{bookingID}
Save a set of questionnaire results against a booking.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| bookingID |
This is the booking ID to store the result set against. |
integer |
Required |
Body Parameters
The result set of answers to the questionnaire. This is a list so multiple result sets can be saved against a booking in a single call.
Collection of ObjectNone.
Request Formats
application/json, text/json
Sample:
[{"Results":[{"QuestionnaireItemID":1,"Answer":"Sample Answer"}]}]
application/xml, text/xml
Sample:
<?xml version="1.0" encoding="utf-16"?>
<QuestionnaireResultSets xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<APIQuestionnaireResultSet>
<Results>
<APIQuestionnaireResult>
<QuestionnaireItemID>1</QuestionnaireItemID>
<Answer>Sample Answer</Answer>
</APIQuestionnaireResult>
</Results>
</APIQuestionnaireResultSet>
</QuestionnaireResultSets>
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{"Result":"Complete","Message":"Questionnaires were successfully saved under booking: 01234567"}
application/xml, text/xml
Sample:
<?xml version="1.0" encoding="utf-16"?> <InformationResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Result>Complete</Result> <Message>Questionnaires were successfully saved under booking: 01234567</Message> </InformationResponse>