Create a new employee
POST/v1/employees
With X-Id-Type: external (integrator mode): employee_no is required (digits, unique within the company; duplicate → 409 EmployeeNoExists); username, password, phone, email and birth_date become optional. Without username no app login account is created (the employee still works with cards / gate password).
Request
Responses
- 201
- 400
- 401
- 403
- 404
- 409
- 422
- 500
Employee created successfully
Bad request
Unauthorized
License limit reached
Invalid reference ID
Employee number already exists in the company (X-Id-Type: external)
Company defaults missing (send department_id / rotation_id / annual_leave_group_id explicitly)
Server error