POST api/WebForm/WebFormContactCapturingResponse

Request Information

URI Parameters

None.

Body Parameters

WebFormResponseViewModel
NameDescriptionTypeAdditional information
WebFormId

string

None.

AccountId

string

None.

FormFieldsData

Collection of FormFieldsViewModel

None.

CategoryDetail

CategoryViewModel

None.

Request Formats

application/json, text/json

Sample:
{
  "WebFormId": "sample string 1",
  "AccountId": "sample string 2",
  "FormFieldsData": [
    {
      "FormFieldId": "sample string 1",
      "CustomFieldId": "sample string 2",
      "FieldType": "Standard",
      "CustomFieldType": "Text",
      "SelectedMultipleOptionIds": [
        "sample string 1",
        "sample string 2"
      ],
      "FieldResponse": "sample string 3",
      "DateOfBirth": {
        "DOB": "2022-12-03T00:13:20.1962604+00:00",
        "Day": 1,
        "Month": 1,
        "Year": 1
      },
      "CustomFieldResponseText": "sample string 4",
      "CountryId": "sample string 5"
    },
    {
      "FormFieldId": "sample string 1",
      "CustomFieldId": "sample string 2",
      "FieldType": "Standard",
      "CustomFieldType": "Text",
      "SelectedMultipleOptionIds": [
        "sample string 1",
        "sample string 2"
      ],
      "FieldResponse": "sample string 3",
      "DateOfBirth": {
        "DOB": "2022-12-03T00:13:20.1962604+00:00",
        "Day": 1,
        "Month": 1,
        "Year": 1
      },
      "CustomFieldResponseText": "sample string 4",
      "CountryId": "sample string 5"
    }
  ],
  "CategoryDetail": {
    "CategoryIds": [
      "sample string 1",
      "sample string 2"
    ],
    "CategoryType": "List"
  }
}

application/xml, text/xml

Sample:
<WebFormResponseViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel.LeadCapture">
  <AccountId>sample string 2</AccountId>
  <CategoryDetail xmlns:d2p1="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel">
    <d2p1:CategoryIds xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </d2p1:CategoryIds>
    <d2p1:CategoryType>List</d2p1:CategoryType>
  </CategoryDetail>
  <FormFieldsData xmlns:d2p1="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel">
    <d2p1:FormFieldsViewModel>
      <d2p1:CountryId>sample string 5</d2p1:CountryId>
      <d2p1:CustomFieldId>sample string 2</d2p1:CustomFieldId>
      <d2p1:CustomFieldResponseText>sample string 4</d2p1:CustomFieldResponseText>
      <d2p1:CustomFieldType>Text</d2p1:CustomFieldType>
      <d2p1:DateOfBirth>
        <d2p1:DOB>2022-12-03T00:13:20.1962604+00:00</d2p1:DOB>
        <d2p1:Day>1</d2p1:Day>
        <d2p1:Month>1</d2p1:Month>
        <d2p1:Year>1</d2p1:Year>
      </d2p1:DateOfBirth>
      <d2p1:FieldResponse>sample string 3</d2p1:FieldResponse>
      <d2p1:FieldType>Standard</d2p1:FieldType>
      <d2p1:FormFieldId>sample string 1</d2p1:FormFieldId>
      <d2p1:SelectedMultipleOptionIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </d2p1:SelectedMultipleOptionIds>
    </d2p1:FormFieldsViewModel>
    <d2p1:FormFieldsViewModel>
      <d2p1:CountryId>sample string 5</d2p1:CountryId>
      <d2p1:CustomFieldId>sample string 2</d2p1:CustomFieldId>
      <d2p1:CustomFieldResponseText>sample string 4</d2p1:CustomFieldResponseText>
      <d2p1:CustomFieldType>Text</d2p1:CustomFieldType>
      <d2p1:DateOfBirth>
        <d2p1:DOB>2022-12-03T00:13:20.1962604+00:00</d2p1:DOB>
        <d2p1:Day>1</d2p1:Day>
        <d2p1:Month>1</d2p1:Month>
        <d2p1:Year>1</d2p1:Year>
      </d2p1:DateOfBirth>
      <d2p1:FieldResponse>sample string 3</d2p1:FieldResponse>
      <d2p1:FieldType>Standard</d2p1:FieldType>
      <d2p1:FormFieldId>sample string 1</d2p1:FormFieldId>
      <d2p1:SelectedMultipleOptionIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </d2p1:SelectedMultipleOptionIds>
    </d2p1:FormFieldsViewModel>
  </FormFieldsData>
  <WebFormId>sample string 1</WebFormId>
</WebFormResponseViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.