Update employee
/v1/employees/{employee_id}
Updates an existing employee's information. All fields are optional - only provided fields will be updated. Note: SSN, name, date of birth, and sex cannot be changed after creation.
Path Parameters
employee_id: string
Body Parameters
email: optional string
Email address
formatemail
gender: optional string
Gender identity
phone: optional string
Phone number
termination_date: optional string
Termination date if terminating
formatdate
Returns
Update employee
curl https://api.vitablehealth.com/v1/employees/$EMPLOYEE_ID \
-X PUT \
-H "Authorization: Bearer $VITABLE_connect_API_API_KEY"
{
"id": "id",
"active": true,
"created_at": "2019-12-27T18:11:19.117Z",
"employer_id": "employer_id",
"member": {
"id": "id",
"date_of_birth": "2019-12-27",
"first_name": "first_name",
"last_name": "last_name",
"sex": "Male",
"email": "dev@stainless.com",
"gender": "gender",
"phone": "phone",
"suffix": "suffix"
},
"start_date": "2019-12-27",
"updated_at": "2019-12-27T18:11:19.117Z",
"address": {
"city": "city",
"state": "state",
"street_1": "street_1",
"zip_code": "zip_code",
"country": "country",
"street_2": "street_2"
},
"employee_class": "Full Time",
"termination_date": "2019-12-27"
}
Returns Examples
{
"id": "id",
"active": true,
"created_at": "2019-12-27T18:11:19.117Z",
"employer_id": "employer_id",
"member": {
"id": "id",
"date_of_birth": "2019-12-27",
"first_name": "first_name",
"last_name": "last_name",
"sex": "Male",
"email": "dev@stainless.com",
"gender": "gender",
"phone": "phone",
"suffix": "suffix"
},
"start_date": "2019-12-27",
"updated_at": "2019-12-27T18:11:19.117Z",
"address": {
"city": "city",
"state": "state",
"street_1": "street_1",
"zip_code": "zip_code",
"country": "country",
"street_2": "street_2"
},
"employee_class": "Full Time",
"termination_date": "2019-12-27"
}