POST example/api/survey/{id}/responses
https://app.bwz.se/bedrock/example/api/survey/{id}/responses
Creates a response for a Survey.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
Id of the Survey. |
integer |
Required |
Body Parameters
Array of FormResponseValue for the survey response.
CreateSurveyFormResponseArgsName | Description | Type | Additional information |
---|---|---|---|
FormResponseValueModels |
Array of FormResponseValue for the survey response. |
Collection of FormResponseValueModel |
None. |
Request Formats
application/json, text/json
Sample:
{ "FormResponseValueModels": [ { "Name": "sample string 1", "Values": [ "sample string 1", "sample string 2" ], "ResponseFormFieldPossiblities": [ { "Value": "sample string 1", "Label": "sample string 2" }, { "Value": "sample string 1", "Label": "sample string 2" } ] }, { "Name": "sample string 1", "Values": [ "sample string 1", "sample string 2" ], "ResponseFormFieldPossiblities": [ { "Value": "sample string 1", "Label": "sample string 2" }, { "Value": "sample string 1", "Label": "sample string 2" } ] } ] }
application/xml, text/xml
Sample:
<CreateSurveyFormResponseArgs xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Netoptions.BizWizard.Api.Common.Models.Survey"> <FormResponseValueModels xmlns:d2p1="http://schemas.datacontract.org/2004/07/Netoptions.BizWizard.Api.Common.Models.Form"> <d2p1:FormResponseValueModel> <d2p1:Name>sample string 1</d2p1:Name> <d2p1:ResponseFormFieldPossiblities> <d2p1:FormFieldPossibilityModel> <d2p1:Label>sample string 2</d2p1:Label> <d2p1:Value>sample string 1</d2p1:Value> </d2p1:FormFieldPossibilityModel> <d2p1:FormFieldPossibilityModel> <d2p1:Label>sample string 2</d2p1:Label> <d2p1:Value>sample string 1</d2p1:Value> </d2p1:FormFieldPossibilityModel> </d2p1:ResponseFormFieldPossiblities> <d2p1:Values xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:string>sample string 1</d4p1:string> <d4p1:string>sample string 2</d4p1:string> </d2p1:Values> </d2p1:FormResponseValueModel> <d2p1:FormResponseValueModel> <d2p1:Name>sample string 1</d2p1:Name> <d2p1:ResponseFormFieldPossiblities> <d2p1:FormFieldPossibilityModel> <d2p1:Label>sample string 2</d2p1:Label> <d2p1:Value>sample string 1</d2p1:Value> </d2p1:FormFieldPossibilityModel> <d2p1:FormFieldPossibilityModel> <d2p1:Label>sample string 2</d2p1:Label> <d2p1:Value>sample string 1</d2p1:Value> </d2p1:FormFieldPossibilityModel> </d2p1:ResponseFormFieldPossiblities> <d2p1:Values xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:string>sample string 1</d4p1:string> <d4p1:string>sample string 2</d4p1:string> </d2p1:Values> </d2p1:FormResponseValueModel> </FormResponseValueModels> </CreateSurveyFormResponseArgs>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
SurveyFormPostJsonResultModelName | Description | Type | Additional information |
---|---|---|---|
formResponseId | integer |
None. |
|
redirectUrl | string |
None. |
|
successful | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{ "successful": true, "formResponseId": 1, "redirectUrl": "sample string 1" }
application/xml, text/xml
Sample:
<SurveyFormPostEventHandler.SurveyFormPostJsonResultModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Netoptions.BizWizard.IncomingRequest.Default.IncomingRequestHandler.IncomingRequestHandlers.FormPost"> <Successful xmlns="http://schemas.datacontract.org/2004/07/Netoptions.BizWizard.IncomingRequest.Default.IncomingRequestHandler">true</Successful> <FormResponseId xmlns="http://schemas.datacontract.org/2004/07/Netoptions.BizWizard.IncomingRequest.Default.IncomingRequestHandler">1</FormResponseId> <RedirectUrl xmlns="http://schemas.datacontract.org/2004/07/Netoptions.BizWizard.IncomingRequest.Default.IncomingRequestHandler">sample string 1</RedirectUrl> </SurveyFormPostEventHandler.SurveyFormPostJsonResultModel>