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.
The response will contain a success field, which will be set to true if the employee creation was successful.
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
This error occurs when the grade field is not filled in the request.
This error occurs when the office information is not provided in the request.
This error denotes that the request did not include the employee’s department information.
This error indicates that the specified manager could not be found in the system.
This error occurs when an attempt is made to create an employee with a code that already exists in the system.
This error signifies that the request did not include the employee’s name.