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": "92a31e6c-0e0a-4838-b3dc-effa81e654a7" }
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>92a31e6c-0e0a-4838-b3dc-effa81e654a7</MembershipID> <NotificationResults>sample string 2</NotificationResults> <Results>sample string 1</Results> </SubmitFormResultsRequest>
Response Information
Response body formats
application/json, text/json
Sample:
{ "FormResultsID": "54a9a48e-06fd-4ea6-b6a3-11f4587422b0", "FormID": "0e8a5225-3305-42c3-bde9-8d4e971b9422", "SiteName": "sargentsmaytag", "FormName": "Appointments", "Results": "<b>Name:</b> Chesa Keane<br/><b>Address:</b> <br/>City: Reno<br/><b>Phone:</b> 775-691-2700<br/><b>Email:</b> tao@computergoddess.com<br/><b>Notes:</b> Do you do service work on LG refrigerators? my LG Inverter Linear will not make ice.<br/><br/><b>Appointments:</b> No date or time selected", "CreatedTime": "2024-05-16T17:42:49.323-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-05-17T00:42:49.323Z</d2p1:DateTime> <d2p1:OffsetMinutes>-420</d2p1:OffsetMinutes> </CreatedTime> <FormID>0e8a5225-3305-42c3-bde9-8d4e971b9422</FormID> <FormName>Appointments</FormName> <FormResultsID>54a9a48e-06fd-4ea6-b6a3-11f4587422b0</FormResultsID> <MediaList /> <MembershipID i:nil="true" /> <Results><b>Name:</b> Chesa Keane<br/><b>Address:</b> <br/>City: Reno<br/><b>Phone:</b> 775-691-2700<br/><b>Email:</b> tao@computergoddess.com<br/><b>Notes:</b> Do you do service work on LG refrigerators? my LG Inverter Linear will not make ice.<br/><br/><b>Appointments:</b> No date or time selected</Results> <SiteName>sargentsmaytag</SiteName> <SubmitProviderResponse i:nil="true" /> </FormResults>