Overview /
People & HR /
Update a document
Update a document
patch
https://api.flactrum.com/v1/employee-documents/{document}
| Required scope | employees.write |
| Success status | 200 |
| Returns | One EmployeeDocument object |
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| document * | path | string | ULID of the record. |
Request body
| Field | Type | Description |
|---|---|---|
| employee_id * | string | — |
| type * | string | — |
| issued_at | string|null | — |
| valid_until | string|null | — |
| note | string|null | — |
| file | string|null | Optional PDF or image, up to 8 MB. Send the request as multipart/form-data to include it. |
Response fields
| Field | Type | Description |
|---|---|---|
| id | string | — |
| employee_id | string | — |
| type | string | — |
| issued_at | string|null | — |
| valid_until | string|null | — |
| is_expired | boolean | An expired document blocks shift assignment. |
| expires_soon | boolean | Expires within 30 days. |
| has_file | boolean | The file itself is private and never linked directly; download it from its own endpoint. |
| note | string|null | — |
Examples
Recorded from the test suite — these are real requests and their real responses.
curl -X PATCH 'https://api.flactrum.com/v1/employee-documents/01m43mzebhcqp0xwvcb9a2vp8h' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Content-Type: application/json' \
-d '{
"valid_until": "2028-10-04"
}'
HTTP 200 · application/json
{
"data": {
"id": "01m43mzebhcqp0xwvcb9a2vp8h",
"employee_id": "01m43mzeat1pf150w4bsz88r15",
"type": "hygiene",
"issued_at": "2026-08-04",
"valid_until": "2028-10-04",
"is_expired": false,
"expires_soon": false,
"has_file": false,
"note": null,
"created_at": "2026-10-04T14:27:07+00:00",
"updated_at": "2026-10-04T14:27:07+00:00"
}
}