POST example/api/event/{id}/responses
https://app.bwz.se/bedrock/example/api/event/{id}/responses
Creates a response for an Event
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
Id of the Event. |
integer |
Required |
Body Parameters
Array of FormResponseValue for the event response.
CreateEventFormResponseArgsName | Description | Type | Additional information |
---|---|---|---|
FormResponseValueModels |
Array of FormResponseValue for the event 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:
<CreateEventFormResponseArgs xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Netoptions.BizWizard.Api.Common.Models.Event"> <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> </CreateEventFormResponseArgs>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
EventFormPostJsonResultModelName | Description | Type | Additional information |
---|---|---|---|
statusCodeText | string |
None. |
|
statusCode | integer |
None. |
|
formResponseId | integer |
None. |
|
redirectUrl | string |
None. |
|
successful | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{ "successful": true, "statusCodeText": "sample string 1", "statusCode": 2, "formResponseId": 1, "redirectUrl": "sample string 3" }
application/xml, text/xml
Sample:
<EventFormPostEventHandler.EventFormPostJsonResultModel 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 3</RedirectUrl> <StatusCode>2</StatusCode> <StatusCodeText>sample string 1</StatusCodeText> </EventFormPostEventHandler.EventFormPostJsonResultModel>