Skip to main content

Update Employee


PUT services/api/v1/employees/{employee_id}

Updates an existing employee.

Parameters

ParameterTypeDescription
employee_idstringThe ID of the employee.

Request Body

{
"email": "john.doe@privatemail.com",
"company_email": "john.doe@companymail.org",
"first_name": "John",
"last_name": "Doe",
"phone": "+39 1234567890",
"language": "en",
"gender": "male",
"employee_status_id": "1",
"location_id": "123",
"department_id": "321",
"photo_url": "https://www.onboard.org/assets/images/logo/onboard_logo_RGB-340.png",
...
}

Response

The updated employee.

{
"id": "7bBJMyz2",
"email": "john.doe@privatemail.com",
"company_email": "john.doe@companymail.org",
"first_name": "John",
"last_name": "Doe",
"phone": "+39 1234567890",
"created_at": "2023-12-31T09:32:31.262Z",
"updated_at": "2024-01-01T11:53:55.662Z",
"language": "en",
"gender": "male",
"employee_status_id": "1",
"location_id": "123",
"department_id": "321",
"photo_url": "https://www.onboard.org/assets/images/logo/onboard_logo_RGB-340.png",
...
}