Create New Employee
This API endpoint is used to create a new employee in the external system. The request should be sent as an HTTP POST to {{host}}/apis/external/employee/create with the required payload in the raw request body.
Request Payload
Response
The response will contain a success field, which will be set to true if the employee creation was successful.
Error Responses
In case of errors or missing information, the API will provide corresponding error messages. Below are the possible error scenarios along with their respective JSON responses:
t
1. Grade Not Provided
This error occurs when the grade field is not filled in the request.
2. Office Not Provided
This error occurs when the office information is not provided in the request.
3. Department Not Provided
This error denotes that the request did not include the employee’s department information.
4. Manager Not Found
This error indicates that the specified manager could not be found in the system.
5. Duplicate Employee Code
This error occurs when an attempt is made to create an employee with a code that already exists in the system.
6. Name Not Provided
This error signifies that the request did not include the employee’s name.
