POST api/Employee
Request Information
URI Parameters
None.
Body Parameters
EmployeeModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Designation | string |
None. |
|
| UserNotes | string |
None. |
|
| BusinessPhone | string |
None. |
|
| IsBusinessPhoneTextOk | string |
None. |
|
| ContactName | string |
None. |
|
| ContactRelationship | string |
None. |
|
| IsContactPhoneTextOk | boolean |
None. |
|
| AlternatePhone | string |
None. |
|
| IsAlternatePhoneTextOk | boolean |
None. |
|
| Id | integer |
None. |
|
| string |
None. |
||
| ContactPhone | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Designation": "sample string 1",
"UserNotes": "sample string 2",
"BusinessPhone": "sample string 3",
"IsBusinessPhoneTextOk": "sample string 4",
"ContactName": "sample string 5",
"ContactRelationship": "sample string 6",
"IsContactPhoneTextOk": true,
"AlternatePhone": "sample string 8",
"IsAlternatePhoneTextOk": true,
"Id": 10,
"Email": "sample string 11",
"ContactPhone": "sample string 12"
}
application/xml, text/xml
Sample:
<EmployeeModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DOAS.API.Models"> <AlternatePhone>sample string 8</AlternatePhone> <BusinessPhone>sample string 3</BusinessPhone> <ContactName>sample string 5</ContactName> <ContactPhone>sample string 12</ContactPhone> <ContactRelationship>sample string 6</ContactRelationship> <Designation>sample string 1</Designation> <Email>sample string 11</Email> <Id>10</Id> <IsAlternatePhoneTextOk>true</IsAlternatePhoneTextOk> <IsBusinessPhoneTextOk>sample string 4</IsBusinessPhoneTextOk> <IsContactPhoneTextOk>true</IsContactPhoneTextOk> <UserNotes>sample string 2</UserNotes> </EmployeeModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
booleanResponse Formats
application/json, text/json
Sample:
true
application/xml, text/xml
Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>