Overview /
People & HR /
Update an employee
Update an employee
patch
https://api.flactrum.com/v1/employees/{employee}
| Required scope | employees.write |
| Success status | 200 |
| Returns | One Employee object |
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| employee * | path | string | ULID of the record. |
Request body
| Field | Type | Description |
|---|---|---|
| first_name * | string | — |
| last_name * | string | — |
| position * | string | — |
| phone | string|null | — |
| string|null | — | |
| national_id | string|null | — |
| status | string | — |
| branch_id | string|null | — |
| branch_ids | array | Replaces the additional-branch list. |
| user_id | string|null | — |
| hired_at | string|null | — |
| left_at | string|null | Setting this also moves status to left, so no one stays schedulable by accident. |
| monthly_gross_salary | number|null | — |
| insurance_rate | number|null | — |
| note | string|null | — |
| invite_to_panel | boolean | Also open a panel and management-app account: an invitation goes to email. Needs email and role_id. Ignored when the employee already has an account. |
| role_id | string|null | Role of the invited account. Required with invite_to_panel. |
Response fields
| Field | Type | Description |
|---|---|---|
| id | string | — |
| first_name | string | — |
| last_name | string | — |
| full_name | string | — |
| position | string | — |
| phone | string|null | — |
| string|null | — | |
| status | string | — |
| branch_id | string|null | Home branch. |
| branch_ids | array | Every branch this employee may work at, home branch included. Shift assignment checks this list. |
| user_id | string|null | Linked panel user, when the employee has a login. |
| hired_at | string|null | — |
| left_at | string|null | — |
| monthly_gross_salary | number|null | — |
| insurance_rate | number|null | Employer contribution percentage on top of gross. |
Examples
Recorded from the test suite — these are real requests and their real responses.
curl -X PATCH 'https://api.flactrum.com/v1/employees/01m43mzdw8nc9jdxwtaw7k2yv8' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Content-Type: application/json' \
-d '{
"position": "Şube müdürü"
}'
HTTP 200 · application/json
{
"data": {
"id": "01m43mzdw8nc9jdxwtaw7k2yv8",
"first_name": "Zeynep",
"last_name": "Demir",
"full_name": "Zeynep Demir",
"position": "Şube müdürü",
"phone": null,
"email": null,
"status": "active",
"branch_id": "01m43mzdvn3r8nx0hxssvvxa76",
"branch_ids": [
"01m43mzdvn3r8nx0hxssvvxa76"
],
"user_id": null,
"hired_at": "2025-10-04",
"left_at": null,
"monthly_gross_salary": 32000,
"insurance_rate": null,
"note": null,
"created_at": "2026-10-04T14:27:07+00:00",
"updated_at": "2026-10-04T14:27:07+00:00"
}
}