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

NameDescriptionAdditional 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>&lt;b&gt;Name:&lt;/b&gt; Chesa Keane&lt;br/&gt;&lt;b&gt;Address:&lt;/b&gt; &lt;br/&gt;City: Reno&lt;br/&gt;&lt;b&gt;Phone:&lt;/b&gt; 775-691-2700&lt;br/&gt;&lt;b&gt;Email:&lt;/b&gt; tao@computergoddess.com&lt;br/&gt;&lt;b&gt;Notes:&lt;/b&gt; Do you do service work on LG refrigerators? my LG Inverter Linear will not make ice.&lt;br/&gt;&lt;br/&gt;&lt;b&gt;Appointments:&lt;/b&gt; No date or time selected</Results>
  <SiteName>sargentsmaytag</SiteName>
  <SubmitProviderResponse i:nil="true" />
</FormResults>