POST api/V3/Employee/AddHierarchy
add or update manager of user
Request Information
URI Parameters
None.
Body Parameters
V3.EmployeeHierarachy| Name | Description | Type | Additional information |
|---|---|---|---|
| ParentErpId |
erpid of parent manager |
string |
String length: inclusive between 0 and 100 |
| Name |
name of manager |
string |
Required String length: inclusive between 0 and 50 |
| ErpId |
erp id of manager |
string |
Required String length: inclusive between 0 and 100 |
|
email of manager |
string |
String length: inclusive between 0 and 500 |
|
| Mobile |
mobile number of manager |
string |
String length: inclusive between 0 and 15 |
| UserRole |
user role of manager |
PortalUserRole |
None. |
Request Formats
application/json, text/json
Sample:
{
"UserRole": "GlobalAdmin",
"ParentErpId": "sample string 1",
"Name": "sample string 2",
"ErpId": "sample string 3",
"Email": "sample string 4",
"Mobile": "sample string 5"
}
application/xml, text/xml
Sample:
<EmployeeHierarchy xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ExternalApis.Models.V3"> <Email>sample string 4</Email> <ErpId>sample string 3</ErpId> <Mobile>sample string 5</Mobile> <Name>sample string 2</Name> <ParentErpId>sample string 1</ParentErpId> <UserRole>GlobalAdmin</UserRole> </EmployeeHierarchy>
Response Information
Resource Description
ApiResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| ERPId |
ERPID of the Requested insertion/updation |
string |
None. |
| Message |
Error Message for the indicated ERPID |
string |
None. |
| ResponseStatus |
Status of the action requested from Api |
ResponseStatus |
None. |
| GUID |
GUID of the database Entry with respect to the ERP Id Provided |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"ERPId": "sample string 1",
"Message": "sample string 2",
"ResponseStatus": "Failure",
"GUID": "sample string 3"
}
application/xml, text/xml
Sample:
<ApiResponseMessage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ExternalApis.Models.Common"> <ERPId>sample string 1</ERPId> <GUID>sample string 3</GUID> <Message>sample string 2</Message> <ResponseStatus>Failure</ResponseStatus> </ApiResponseMessage>