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": "fe40c46d-a79d-467a-8c4f-1c568b5bab4d" }
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>fe40c46d-a79d-467a-8c4f-1c568b5bab4d</MembershipID> <NotificationResults>sample string 2</NotificationResults> <Results>sample string 1</Results> </SubmitFormResultsRequest>
Response Information
Response body formats
application/json, text/json
Sample:
{ "FormResultsID": "30146772-a9b7-46f0-949b-311956cc997a", "FormID": "4965ae8c-15b5-4b92-b9b9-790e4e0b3b73", "SiteName": "craftingcheetah", "FormName": "Contact - Basic", "Results": "<b>Name:</b> Samantha Jaeckel<br/><b>Email:</b> [email protected]<br/><b>Message:</b> Hi Sara. I had contacted you about my sons birthday on November 2nd. I had to get a replacement phone and lost your contact information. The party has to be moved to the following weekend so please reach out to me when you can. Thanks so much!! 702-556-7664<br/><b>IP Address:</b> 162.158.244.141", "CreatedTime": "2024-10-27T11:57:24.35-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-10-27T18:57:24.35Z</d2p1:DateTime> <d2p1:OffsetMinutes>-420</d2p1:OffsetMinutes> </CreatedTime> <FormID>4965ae8c-15b5-4b92-b9b9-790e4e0b3b73</FormID> <FormName>Contact - Basic</FormName> <FormResultsID>30146772-a9b7-46f0-949b-311956cc997a</FormResultsID> <MediaList /> <MembershipID i:nil="true" /> <Results><b>Name:</b> Samantha Jaeckel<br/><b>Email:</b> [email protected]<br/><b>Message:</b> Hi Sara. I had contacted you about my sons birthday on November 2nd. I had to get a replacement phone and lost your contact information. The party has to be moved to the following weekend so please reach out to me when you can. Thanks so much!! 702-556-7664<br/><b>IP Address:</b> 162.158.244.141</Results> <SiteName>craftingcheetah</SiteName> <SubmitProviderResponse i:nil="true" /> </FormResults>