POST api/Contact

Request Information

URI Parameters

None.

Body Parameters

Contact
NameDescriptionTypeAdditional information
contactid

globally unique identifier

None.

firstname

string

None.

lastname

string

None.

statecode

integer

None.

mobilephone

string

None.

var_vatcode

string

None.

var_fiscalcode

string

None.

emailaddress1

string

None.

address1_line1

string

None.

address1_city

string

None.

address1_postalcode

string

None.

address1_stateorprovince

string

None.

customertypecode

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "contactid": "e4d16e37-4a80-40b3-9837-767d166fab92",
  "firstname": "sample string 1",
  "lastname": "sample string 2",
  "statecode": 3,
  "mobilephone": "sample string 4",
  "var_vatcode": "sample string 5",
  "var_fiscalcode": "sample string 6",
  "emailaddress1": "sample string 7",
  "address1_line1": "sample string 8",
  "address1_city": "sample string 9",
  "address1_postalcode": "sample string 10",
  "address1_stateorprovince": "sample string 11",
  "customertypecode": 12
}

application/xml, text/xml

Sample:
<Contact xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Inlinea.AssoAste.BL.CRM">
  <Address>sample string 8</Address>
  <Cap>sample string 10</Cap>
  <Comune>sample string 9</Comune>
  <EmailAddress1>sample string 7</EmailAddress1>
  <FirstName>sample string 1</FirstName>
  <Id>e4d16e37-4a80-40b3-9837-767d166fab92</Id>
  <LastName>sample string 2</LastName>
  <MobilePhone>sample string 4</MobilePhone>
  <Provincia>sample string 11</Provincia>
  <StateCode>3</StateCode>
  <Var_FiscalCode>sample string 6</Var_FiscalCode>
  <Var_VatCode>sample string 5</Var_VatCode>
  <customertypecode>12</customertypecode>
</Contact>

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 'Contact'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.