Skip to main content
PATCH
Update Employee

Update Employee

Update an existing employee’s information. You can modify any combination of the employee’s fields.
Partial Updates: Only include the fields you want to update. Fields not included in the request body will remain unchanged.

Request

Headers

string
required
Your API key for authenticationExample: sk_live_1234567890abcdef
string
required
Your organization UUIDExample: a8315ef3-dd50-43f8-b7ce-d839e68d51fa

Path Parameters

string
required
The unique identifier (UUID) of the employee to updateExample: 550e8400-e29b-41d4-a716-446655440000

Body Parameters

string
Employee’s full name (1-255 characters)Example: "John Smith Jr."
string
Employee’s email addressExample: "john.smith.new@company.com"
string
Employment situationAvailable values: active, inactive, terminatedExample: "inactive"
string
Data collection statusAvailable values: uploaded, loadingExample: "uploaded"

Response

string
Unique identifier (UUID)
string | null
Employee’s full name
string | null
Employee’s email address
string
Organization UUID
string | null
Employment status: active, inactive, or terminated
string
Data status: uploaded or loading
array | null
List of commuting periods
datetime
Timestamp when the employee was created
datetime | null
Timestamp when the employee was last updated

Example

Successful Response

Common Errors

401 Unauthorized

Cause: Missing or invalid API key
Solution: Verify your API key is valid and active.

404 Not Found

Cause: Employee not found or doesn’t belong to your organization
Solution: Verify the employee ID is correct and belongs to your organization.

422 Validation Error

Cause: Invalid field values or extra fields
Solution: Check that all provided values are valid. Only use allowed enum values for situation and status.

Use Cases

Update Employee Situation

Change an employee’s employment status:

Update Employee Email

Change an employee’s email address:

Update Multiple Fields

Update several fields at once:

Mark Employee as Terminated

Handle employee offboarding:

Bulk Update Employees

Update multiple employees’ status:

Get Employee

View employee details

Delete Employee

Remove an employee

List Employees

View all employees

Update Commuting Period

Modify commuting data