POST api/Forms/SubmitResults
Submits form results to the Site's current form. Scope Site.Name:{SiteName} must be granted to retrieve the information (in other words - results can only be submitted within the scope of a single Site).
Request Information
Parameters
Name | Description | Additional information |
---|---|---|
results | Forms results to submit. |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
{ "Results": "sample string 1", "NotificationResults": "sample string 2", "MembershipID": "bed05abd-e637-484b-8f63-29b91e7ea2f8" }
application/xml, text/xml
Sample:
<SubmitFormResultsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SoNET.WebAPI.Logic.Models"> <MembershipID>bed05abd-e637-484b-8f63-29b91e7ea2f8</MembershipID> <NotificationResults>sample string 2</NotificationResults> <Results>sample string 1</Results> </SubmitFormResultsRequest>
Response Information
Response body formats
application/json, text/json
Sample:
{ "FormResultsID": "4f74a96f-fcf9-4208-b49a-39959d23ad54", "FormID": "4f5fba23-ef54-4ac5-8943-d277a0d645da", "SiteName": "badmintonlasvegas", "FormName": "Survey - Badminton Club", "Results": "<b>If the new club were to open, where would you prefer it?:</b> South Las Vegas", "CreatedTime": "2024-04-25T19:38:23.24-07:00", "Approved": null, "ApprovalNote": null, "MembershipID": null, "SubmitProviderResponse": null, "MediaList": [] }
application/xml, text/xml
Sample:
<FormResults xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MediaLibrarianCore"> <ApprovalNote i:nil="true" /> <Approved i:nil="true" /> <CreatedTime xmlns:d2p1="http://schemas.datacontract.org/2004/07/System"> <d2p1:DateTime>2024-04-26T02:38:23.24Z</d2p1:DateTime> <d2p1:OffsetMinutes>-420</d2p1:OffsetMinutes> </CreatedTime> <FormID>4f5fba23-ef54-4ac5-8943-d277a0d645da</FormID> <FormName>Survey - Badminton Club</FormName> <FormResultsID>4f74a96f-fcf9-4208-b49a-39959d23ad54</FormResultsID> <MediaList /> <MembershipID i:nil="true" /> <Results><b>If the new club were to open, where would you prefer it?:</b> South Las Vegas</Results> <SiteName>badmintonlasvegas</SiteName> <SubmitProviderResponse i:nil="true" /> </FormResults>