POST api/InsertContactInfo

Request Information

URI Parameters

None.

Body Parameters

ContactUsInfo
NameDescriptionTypeAdditional information
ContactMasterlist

Collection of ContactMaster

None.

ContactName

string

Matching regular expression pattern: ^[a-zA-Z]{2,}$

ContactAddress

string

None.

ContactNumber

integer

Matching regular expression pattern: ([0-9]{5,14})$

EmailId

string

Matching regular expression pattern: ([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})$

Comment

string

None.

CaptchaInputText

string

None.

Feedbackdate

date

None.

Request Formats

application/json, text/json

Sample:
{
  "ContactMasterlist": [
    {
      "M_ID": 1,
      "M_ContactName": "sample string 2",
      "M_ContactAddress": "sample string 3",
      "M_PhoneNumber": "sample string 4",
      "M_EmailId": "sample string 5"
    },
    {
      "M_ID": 1,
      "M_ContactName": "sample string 2",
      "M_ContactAddress": "sample string 3",
      "M_PhoneNumber": "sample string 4",
      "M_EmailId": "sample string 5"
    }
  ],
  "ContactName": "sample string 1",
  "ContactAddress": "sample string 2",
  "ContactNumber": 1,
  "EmailId": "sample string 3",
  "Comment": "sample string 4",
  "CaptchaInputText": "sample string 5",
  "Feedbackdate": "2025-05-04T02:48:22.2465981+05:30"
}

application/xml, text/xml

Sample:
<ContactUsInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WDD_Models">
  <CaptchaInputText>sample string 5</CaptchaInputText>
  <Comment>sample string 4</Comment>
  <ContactAddress>sample string 2</ContactAddress>
  <ContactMasterlist>
    <ContactMaster>
      <M_ContactAddress>sample string 3</M_ContactAddress>
      <M_ContactName>sample string 2</M_ContactName>
      <M_EmailId>sample string 5</M_EmailId>
      <M_ID>1</M_ID>
      <M_PhoneNumber>sample string 4</M_PhoneNumber>
    </ContactMaster>
    <ContactMaster>
      <M_ContactAddress>sample string 3</M_ContactAddress>
      <M_ContactName>sample string 2</M_ContactName>
      <M_EmailId>sample string 5</M_EmailId>
      <M_ID>1</M_ID>
      <M_PhoneNumber>sample string 4</M_PhoneNumber>
    </ContactMaster>
  </ContactMasterlist>
  <ContactName>sample string 1</ContactName>
  <ContactNumber>1</ContactNumber>
  <EmailId>sample string 3</EmailId>
  <Feedbackdate>2025-05-04T02:48:22.2465981+05:30</Feedbackdate>
</ContactUsInfo>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ContactUsInfo'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.