POST api/Manager/StaffAddUpdate
Request Information
URI Parameters
None.
Body Parameters
AddEmployeeViewModelName | Description | Type | Additional information |
---|---|---|---|
Basic_details | STAFF_DETAILS |
None. |
|
Credential | USER_CREDENTIALS |
None. |
|
PayrollGrps | Collection of PayrollGroupsViewModel |
None. |
|
leaveGrps | Collection of leaveGrps |
None. |
|
AccessUserId | integer |
None. |
|
AccessRoleId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "basic_details": { "id": 1, "banK_ACC_NUMBER": "sample string 2", "categorY_CODE": 1, "iS_CHARGED_REGISTRATION": true, "stafF_CODE": "sample string 4", "joininG_DATE": "2024-12-01T02:41:07.3572758Z", "blooD_GRP": "sample string 5", "experince": "sample string 6", "parenT_ID": 1, "leavE_GRP_ID": 1, "paY_GR_ID": 1, "dob": "2024-12-01T02:41:07.3572758Z", "ifsC_CODE": "sample string 7", "address": "sample string 8", "lasT_NAME": "sample string 9", "aadhar": "sample string 10", "banK_NAME": "sample string 11", "parenT_ROLE_ID": 1, "firsT_NAME": "sample string 12", "motheR_NAME": "sample string 13", "qualification": "sample string 14", "createD_BY": 1, "useR_CREDENTIAL_ID": 1, "gender": "sample string 15", "iS_APPROVED": true, "mobile": "sample string 16", "iS_NOT_AGENT": true, "email": "sample string 18", "aadhardocs": "sample string 19", "iS_DELETE": true, "fatheR_NAME": "sample string 20", "grade": 1, "createD_DATE": "2024-12-01T02:41:07.3572758Z", "rolL_ID": 1, "assigneD_REG_SESSION_ID": 1, "iS_ACTIVE": true, "accesS_ROLEID": 1, "iS_ACTIVE_SRV1": true, "iS_ACTIVE_SRV2": true }, "credential": { "uid": 1, "username": "sample string 2", "password": "sample string 3", "roleid": 1, "iS_ACTIVE": true }, "payrollGrps": [ { "group": { "p_G_ID": 1, "grouP_NAME": "sample string 2", "paY_FREQUENCY": 1, "paY_GENERATION_DATE": 1, "createD_DATE": "2024-12-01T02:41:07.3572758Z" }, "cateList": [ { "paY_CATE_ID": 1, "catE_NAME": "sample string 2", "catE_CODE": "sample string 3", "isearning": true, "valuE_TYPE": 1, "numeriC_VALUE": 1, "formulA_VALUE": "sample string 4", "createD_DATE": "2024-12-01T02:41:07.3572758Z", "fV1": 1, "fV2": 1, "fvNum": 1 }, { "paY_CATE_ID": 1, "catE_NAME": "sample string 2", "catE_CODE": "sample string 3", "isearning": true, "valuE_TYPE": 1, "numeriC_VALUE": 1, "formulA_VALUE": "sample string 4", "createD_DATE": "2024-12-01T02:41:07.3572758Z", "fV1": 1, "fV2": 1, "fvNum": 1 } ], "categoryValue": [ "sample string 1", "sample string 2" ], "categoryValueToRemove": [ "sample string 1", "sample string 2" ] }, { "group": { "p_G_ID": 1, "grouP_NAME": "sample string 2", "paY_FREQUENCY": 1, "paY_GENERATION_DATE": 1, "createD_DATE": "2024-12-01T02:41:07.3572758Z" }, "cateList": [ { "paY_CATE_ID": 1, "catE_NAME": "sample string 2", "catE_CODE": "sample string 3", "isearning": true, "valuE_TYPE": 1, "numeriC_VALUE": 1, "formulA_VALUE": "sample string 4", "createD_DATE": "2024-12-01T02:41:07.3572758Z", "fV1": 1, "fV2": 1, "fvNum": 1 }, { "paY_CATE_ID": 1, "catE_NAME": "sample string 2", "catE_CODE": "sample string 3", "isearning": true, "valuE_TYPE": 1, "numeriC_VALUE": 1, "formulA_VALUE": "sample string 4", "createD_DATE": "2024-12-01T02:41:07.3572758Z", "fV1": 1, "fV2": 1, "fvNum": 1 } ], "categoryValue": [ "sample string 1", "sample string 2" ], "categoryValueToRemove": [ "sample string 1", "sample string 2" ] } ], "leaveGrps": [ { "leaveGRP": { "leavE_GRP_ID": 1, "leavE_GRP_NAME": "sample string 2", "creatE_DATE": "2024-12-01T02:41:07.372874Z", "iS_ACTIVE": true }, "leaves": [ { "leavE_T_ID": 1, "leavE_NAME": "sample string 2", "leavE_CODE": "sample string 3", "leavE_COUNT": 1, "valiD_FROM_DATE": "2024-12-01T02:41:07.372874Z", "discarD_LEAVE_BALANCE": true, "alL_LEAVE_CARRY_FOR": true, "nuM_LEAVE_FORWARD": 1, "lop": true, "iS_ACTIVE": true }, { "leavE_T_ID": 1, "leavE_NAME": "sample string 2", "leavE_CODE": "sample string 3", "leavE_COUNT": 1, "valiD_FROM_DATE": "2024-12-01T02:41:07.372874Z", "discarD_LEAVE_BALANCE": true, "alL_LEAVE_CARRY_FOR": true, "nuM_LEAVE_FORWARD": 1, "lop": true, "iS_ACTIVE": true } ] }, { "leaveGRP": { "leavE_GRP_ID": 1, "leavE_GRP_NAME": "sample string 2", "creatE_DATE": "2024-12-01T02:41:07.372874Z", "iS_ACTIVE": true }, "leaves": [ { "leavE_T_ID": 1, "leavE_NAME": "sample string 2", "leavE_CODE": "sample string 3", "leavE_COUNT": 1, "valiD_FROM_DATE": "2024-12-01T02:41:07.372874Z", "discarD_LEAVE_BALANCE": true, "alL_LEAVE_CARRY_FOR": true, "nuM_LEAVE_FORWARD": 1, "lop": true, "iS_ACTIVE": true }, { "leavE_T_ID": 1, "leavE_NAME": "sample string 2", "leavE_CODE": "sample string 3", "leavE_COUNT": 1, "valiD_FROM_DATE": "2024-12-01T02:41:07.372874Z", "discarD_LEAVE_BALANCE": true, "alL_LEAVE_CARRY_FOR": true, "nuM_LEAVE_FORWARD": 1, "lop": true, "iS_ACTIVE": true } ] } ], "accessUserId": 1, "accessRoleId": 2 }
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample:
Sample not available.