POST api/Contact/SaveContact
Request Information
URI Parameters
None.
Body Parameters
Contact| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| CompanyName | string |
None. |
|
| EmailAddress | string |
None. |
|
| PhoneNumber | string |
None. |
|
| Address | string |
None. |
|
| ContactPerson | string |
None. |
|
| SupportEmail | string |
None. |
|
| VatPerc | decimal number |
None. |
|
| IsSuccess | boolean |
None. |
|
| Message | string |
None. |
|
| Value | Object |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"CompanyName": "sample string 2",
"EmailAddress": "sample string 3",
"PhoneNumber": "sample string 4",
"Address": "sample string 5",
"ContactPerson": "sample string 6",
"SupportEmail": "sample string 7",
"VatPerc": 8.0,
"IsSuccess": true,
"Message": "sample string 10",
"Value": {}
}
application/xml, text/xml
Sample:
<Contact xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Domain"> <IsSuccess>true</IsSuccess> <Message>sample string 10</Message> <Value /> <Address>sample string 5</Address> <CompanyName>sample string 2</CompanyName> <ContactPerson>sample string 6</ContactPerson> <EmailAddress>sample string 3</EmailAddress> <Id>1</Id> <PhoneNumber>sample string 4</PhoneNumber> <SupportEmail>sample string 7</SupportEmail> <VatPerc>8</VatPerc> </Contact>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |