POST api/Contacts
Request Information
URI Parameters
None.
Body Parameters
ContactViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ContactId | string |
Required String length: inclusive between 0 and 255 |
|
| CivilityId | integer |
Required Range: inclusive between 1 and 3 |
|
| LastName | string |
Required String length: inclusive between 0 and 255 |
|
| FirstName | string |
String length: inclusive between 0 and 255 |
|
| Street | string |
String length: inclusive between 0 and 255 |
|
| ZipCode | string |
Required String length: inclusive between 5 and 5 |
|
| City | string |
Required String length: inclusive between 0 and 255 |
|
| Country | string |
Required String length: inclusive between 3 and 3 |
|
| PhoneNumber | string |
String length: inclusive between 10 and 10 |
|
| string |
String length: inclusive between 0 and 255 |
||
| Department | integer |
Required Range: inclusive between 1 and 976 |
|
| Comment | string |
String length: inclusive between 0 and 1024 |
Request Formats
application/json, text/json
Sample:
{
"ContactId": "sample string 1",
"CivilityId": 2,
"LastName": "sample string 3",
"FirstName": "sample string 4",
"Street": "sample string 5",
"ZipCode": "sample string 6",
"City": "sample string 7",
"Country": "sample string 8",
"PhoneNumber": "sample string 9",
"Email": "sample string 10",
"Department": 11,
"Comment": "sample string 12"
}
application/xml, text/xml
Sample:
<ContactViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Projibat.Web.Api.ViewModels"> <City>sample string 7</City> <CivilityId>2</CivilityId> <Comment>sample string 12</Comment> <ContactId>sample string 1</ContactId> <Country>sample string 8</Country> <Department>11</Department> <Email>sample string 10</Email> <FirstName>sample string 4</FirstName> <LastName>sample string 3</LastName> <PhoneNumber>sample string 9</PhoneNumber> <Street>sample string 5</Street> <ZipCode>sample string 6</ZipCode> </ContactViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.