POST api/User/AddUpdateInternalEmployee
Add / update internal employee
Request Information
URI Parameters
None.
Body Parameters
InternalEmployeeRequestModelName | Description | Type | Additional information |
---|---|---|---|
EmployeeID | integer |
None. |
|
EmployeeCode | string |
None. |
|
Designation | string |
None. |
|
DepartmentName | string |
None. |
|
EmployeeName | string |
None. |
|
TotalRecord | integer |
None. |
|
string |
None. |
||
StateName | string |
None. |
|
StateCode | string |
None. |
|
BranchName | string |
None. |
|
PhoneAreaCode | string |
None. |
|
PhoneNo | string |
None. |
|
ApiToken | string |
None. |
Request Formats
application/json, text/json, text/plain, text/html
Sample:
{ "employeeID": 1, "employeeCode": "sample string 2", "designation": "sample string 3", "departmentName": "sample string 4", "employeeName": "sample string 5", "totalRecord": 6, "email": "sample string 7", "stateName": "sample string 8", "stateCode": "sample string 9", "branchName": "sample string 10", "phoneAreaCode": "sample string 11", "phoneNo": "sample string 12", "apiToken": "sample string 13" }
application/xml, text/xml
Sample:
<InternalEmployeeRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.RequestModel"> <ApiToken>sample string 13</ApiToken> <BranchName>sample string 10</BranchName> <DepartmentName>sample string 4</DepartmentName> <Designation>sample string 3</Designation> <Email>sample string 7</Email> <EmployeeCode>sample string 2</EmployeeCode> <EmployeeID>1</EmployeeID> <EmployeeName>sample string 5</EmployeeName> <PhoneAreaCode>sample string 11</PhoneAreaCode> <PhoneNo>sample string 12</PhoneNo> <StateCode>sample string 9</StateCode> <StateName>sample string 8</StateName> <TotalRecord>6</TotalRecord> </InternalEmployeeRequestModel>
multipart/form-data
Sample:
<InternalEmployeeRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.RequestModel"><ApiToken>sample string 13</ApiToken><BranchName>sample string 10</BranchName><DepartmentName>sample string 4</DepartmentName><Designation>sample string 3</Designation><Email>sample string 7</Email><EmployeeCode>sample string 2</EmployeeCode><EmployeeID>1</EmployeeID><EmployeeName>sample string 5</EmployeeName><PhoneAreaCode>sample string 11</PhoneAreaCode><PhoneNo>sample string 12</PhoneNo><StateCode>sample string 9</StateCode><StateName>sample string 8</StateName><TotalRecord>6</TotalRecord></InternalEmployeeRequestModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
CommonResponseDataModelName | Description | Type | Additional information |
---|---|---|---|
ReturnID | integer |
Required |
|
Message | string |
Required |
|
Successful | boolean |
Required |
|
Code | integer |
None. |
|
TotalRecord | integer |
None. |
Response Formats
application/json, text/json, text/plain, text/html
Sample:
{ "returnID": 1, "message": "sample string 2", "successful": true, "code": 4, "totalRecord": 5 }
application/xml, text/xml
Sample:
<CommonResponseDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel"> <Code>4</Code> <Message>sample string 2</Message> <ReturnID>1</ReturnID> <Successful>true</Successful> <TotalRecord>5</TotalRecord> </CommonResponseDataModel>
multipart/form-data
Sample:
<CommonResponseDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel"><Code>4</Code><Message>sample string 2</Message><ReturnID>1</ReturnID><Successful>true</Successful><TotalRecord>5</TotalRecord></CommonResponseDataModel>