Skip to content

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).

FieldTypeRequiredDescription
first_namestringYes

Employee's given name.

Max length: 100

last_namestringYes

Employee's family name.

Max length: 100

emailstring (email)Yes

Unique work email address.

department_idinteger, nullableNo

ID of an hr_departments record.

position_idinteger, nullableNo

ID of an hr_positions record.

branch_idinteger, nullableNo

ID of an hr_branches record.

statusstringNo

Employment status.

One of: "active", "inactive", "terminated" · Default: "active"

hire_datestring (date), nullableNo

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"}'
Loading