Create employee
POST/hr/employees
Creates a new employee record. The employee is linked to a branch, department, and position. Required fields include first name, last name, and email.
Request
Request body
Content type application/json (required).
| Field | Type | Required | Description |
|---|---|---|---|
first_name | string | Yes | Employee's given name. Max length: 100 |
last_name | string | Yes | Employee's family name. Max length: 100 |
email | string (email) | Yes | Unique work email address. |
department_id | integer, nullable | No | ID of an hr_departments record. |
position_id | integer, nullable | No | ID of an hr_positions record. |
branch_id | integer, nullable | No | ID of an hr_branches record. |
status | string | No | Employment status. One of: |
hire_date | string (date), nullable | No | Start date in ISO 8601 date format. |
Example
{
"first_name": "Ama",
"last_name": "Owusu",
"email": "a.owusu@example.test",
"department_id": 3,
"position_id": 7,
"branch_id": 1,
"status": "active",
"hire_date": "2026-04-08"
}
Responses
302 Redirect to employee list on success
422 Validation error
Example request
curl -X POST "https://{tenant}.faciotech.net/api/v1/hr/employees" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{"first_name": "Ama", "last_name": "Owusu", "email": "a.owusu@example.test", "department_id": 3, "position_id": 7, "branch_id": 1, "status": "active", "hire_date": "2026-04-08"}'