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": "970ba30a-df49-43e7-a337-94128f7feaed" }
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>970ba30a-df49-43e7-a337-94128f7feaed</MembershipID> <NotificationResults>sample string 2</NotificationResults> <Results>sample string 1</Results> </SubmitFormResultsRequest>
Response Information
Response body formats
application/json, text/json
Sample:
{ "FormResultsID": "931489a5-69b7-4be2-af11-a92bbaa9922d", "FormID": "4965ae8c-15b5-4b92-b9b9-790e4e0b3b73", "SiteName": "craftingcheetah", "FormName": "Contact - Basic", "Results": "<b>Name:</b> Ashley Root<br/><b>Email:</b> [email protected]<br/><b>Message:</b> Hi! I am looking for a quote for a face painting event at my preschool. We are looking likely sometime in July and likely around 80 kids. We would like simple designs, not full faces. Thank you!", "CreatedTime": "2024-04-10T11:04:09.03-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-10T18:04:09.03Z</d2p1:DateTime> <d2p1:OffsetMinutes>-420</d2p1:OffsetMinutes> </CreatedTime> <FormID>4965ae8c-15b5-4b92-b9b9-790e4e0b3b73</FormID> <FormName>Contact - Basic</FormName> <FormResultsID>931489a5-69b7-4be2-af11-a92bbaa9922d</FormResultsID> <MediaList /> <MembershipID i:nil="true" /> <Results><b>Name:</b> Ashley Root<br/><b>Email:</b> [email protected]<br/><b>Message:</b> Hi! I am looking for a quote for a face painting event at my preschool. We are looking likely sometime in July and likely around 80 kids. We would like simple designs, not full faces. Thank you!</Results> <SiteName>craftingcheetah</SiteName> <SubmitProviderResponse i:nil="true" /> </FormResults>