Create a new employee in the system along with all the related informations like - assignment, jurisdiction, service, education and probation
To create a new employee we can use POST and set all the required and non-mandatory parameters. When an employee is created, an user is also created along with it. Type value in object will be "EMPLOYEE".
POST/egov-hrms/[API endpoint]/employees/_create
Body
Details for the new employee.
RequestInfo*RequestInfo (object)
RequestInfo should be used to carry meta information about the requests to the server as described in the fields below. All eGov APIs will use requestinfo as a part of the request body to carry this meta information. Some of this information will be returned back from the server as part of the ResponseInfo in the response body to ensure correlation.
Employee*array of Employee (object)
Response
Employee request accepted for creation.
Body
ResponseInfoResponseInfo (object)
ResponseInfo should be used to carry metadata information about the response from the server. apiId, ver and msgId in ResponseInfo should always correspond to the same values in respective request's RequestInfo.
Employeearray of Employee (object)
Request
Response
Get the list of count of active and inactive employee.
Get the list of count of active and inactive employee for given tenant Id.
POST/egov-hrms/[API endpoint]/employees/_count
Query parameters
Response
Successful response, present the list of count of active and inactive employee for given tenant Id.
Body
responseInfoResponseHeader (object)
ResponseHeader should be used to carry metadata information about the response from the server. apiId, ver and msgId in ResponseHeader should always correspond to the same values in respective request's RequestHeader.
EmployeeCountEmployeeCount (object)
Capture the employee count details
Request
Response
Get the list of employees defined in the system.
Get the employee list based on the input parameters. Response will give the minimum set of information related to the employee.
POST/egov-hrms/[API endpoint]/employees/_search
Query parameters
Body
Common request info for getting employee.
apiId*string
unique API ID
ver*string
API version - for HTTP based request this will be same as used in path
ts*integer (int64)
time in epoch
action*string
API action to be performed like _create, _update, _search (denoting POST, PUT, GET) or _oauth etc
didstring
Device ID from which the API is called
keystring
API key (API key provided to the caller in case of server to server communication)
msgId*string
Unique request message id from the caller
requesterIdstring
UserId of the user calling
authTokenstring
//session/jwt/saml token/oauth token - the usual value that would go into HTTP bearer token
userInfoUserInfo (object)
This is acting ID token of the authenticated user on the server. Any value provided by the clients will be ignored and actual user based on authtoken will be used on the server.
correlationIdstring
Response
Successful response
Body
ResponseInfoResponseInfo (object)
ResponseInfo should be used to carry metadata information about the response from the server. apiId, ver and msgId in ResponseInfo should always correspond to the same values in respective request's RequestInfo.
Employeearray of Employee (object)
Request
Response
Update Employee data for a particular employee
To update an existing employee's employee details and all other details like assignment, jurisdiction, qualification service details and porbation. This API will also be used for deactivating an employee
POST/egov-hrms/[API endpoint]/employees/_update
Body
Request header for the employee with new of values.
RequestInfo*RequestInfo (object)
RequestInfo should be used to carry meta information about the requests to the server as described in the fields below. All eGov APIs will use requestinfo as a part of the request body to carry this meta information. Some of this information will be returned back from the server as part of the ResponseInfo in the response body to ensure correlation.
Employee*array of Employee (object)
Response
Employee request accepted for update.
Body
ResponseInfoResponseInfo (object)
ResponseInfo should be used to carry metadata information about the response from the server. apiId, ver and msgId in ResponseInfo should always correspond to the same values in respective request's RequestInfo.