Skip to content

Update Employees ​

Endpoint ​

http
PATCH /unified/hris/employees/{id}
Integrations supported
  • BambooHR
  • HiBob
  • Workable

Path parameters ​

id
string
REQUIRED · 

The ID of the resource.

Example: 23423523

Query parameters ​

Refer Specifying query parameters in Truto APIs

integrated_account_id
string · uuid
REQUIRED · 

The ID of the integrated account to use for the request.

Example: 62f44730-dd91-461e-bd6a-aedd9e0ad79d
truto_response_format
string

The format of the response.

  • unified will return the response with unified mappings applied.
  • raw will return the raw response from the remote API.
  • normalized will apply the unified mappings and return the data in a normalized format.

Defaults to unified.

All possible enum values:
  • unified
  • raw
  • normalized
Example: unified
truto_ignore_remote_data
boolean

Excludes the remote_data attribute from the response.

truto_exclude_fields
array

Array of fields to exclude from the response.

Example: truto_exclude_fields[]=id&truto_exclude_fields[]=name
remote_query
object

Query parameters to pass to the underlying API without any transformations. Refer this guide to see how to structure the query parameters.

Example: remote_query[foo]=bar

Request Body ​

Refer Writing data using Unified APIs

first_name
string

This represents the first name of the employee

Supported in
  • BambooHR
  • HiBob
  • Workable
last_name
string

This represents the last name of the employee

Supported in
  • BambooHR
  • HiBob
  • Workable
emails
object[]

The emails of the user

Supported in
  • BambooHR
  • HiBob
  • Workable
email
string

The email address

type
string

The type of email address

is_primary
boolean

Whether the email address is primary

middle_name
string

This represents the middle name of the employee

Supported in
  • BambooHR
phones
object[]

The phones of the user

Supported in
  • BambooHR
number
string

The phone number

extension
string

The extension of the phone number

type
string

The type of phone number

date_of_birth
string

This represents date of birth

Supported in
  • BambooHR
  • Workable
ssn
string

This represents the ssn

Supported in
  • BambooHR
gender
string

This represents gender

Supported in
  • BambooHR
  • Workable
ethnicity
string

This represent ethnicity

Supported in
  • BambooHR
marital_status
string

This represents marital status

Supported in
  • BambooHR
  • Workable
home_location
object[]

This represents the home location

Supported in
  • BambooHR
  • Workable
id
string

The unique identifier for locations

name
string

This represents the name of the location

street_1
string

The first line of home address

street_2
string

The second line of home address

city
string

The city of the home address

state
string

The state/province of the home address

postal_code
string

The postal code of the home address

country
string

The country of the home address

employee_number
string

This represents the employee number

Supported in
  • BambooHR
employments
object[]

Represents a role or employment of the employee in the company

Supported in
  • BambooHR
  • Workable
id
string
REQUIRED · 

The unique identifier for employments

employee
object

Employee associated with this employment

id
string

The unique identifier for employees

job_title
string

Job title of the employee

pay_rate
number

This represents the pay rate

pay_period
string

This represents the pay period

pay_frequency
string

This represents the pay frequency

pay_currency
string

This represents the pay currency

pay_group
string

This represents the pay group

flsa_status
string

This represents the flsa status

effective_date
string · date-time

Represents the effective date of the employment

end_date
string · date-time

Represents the end date of the employment

employment_type
string

This represents the employment type

All possible enum values:
  • full_time
  • part_time
  • contract
  • internship
  • temporary
  • trainee
  • volunteer
  • per_diem
end_reason
string

Represents why the employment ended

created_at
string · date-time

This represents the date when the employments was created

updated_at
string · date-time

This represents the date when the employments was updated

employment_status
string

This represents the employment status. If no clear mapping is available, then the raw value is returned.

All possible enum values:
  • active
  • inactive
  • pending
Supported in
  • BambooHR
termination_type
string

Represents the type of termination. If no clear mapping exists, then raw value is returned.

All possible enum values:
  • voluntary
  • dismissed
  • redundancy
  • end_of_contract
  • retirement
  • mutual
Supported in
  • BambooHR
termination_reason
string

Represents the reason for termination

Supported in
  • BambooHR
termination_date
string · date-time

This represents the termination date

Supported in
  • BambooHR
custom_fields
Supported in
  • BambooHR
groups
object[]

This represents the groups

Supported in
  • Workable
id
string

The unique identifier for groups

name
string

Group's name

type
string

Type of the group. Some underlying providers use this to differentiate between in-built and user created groups.

manager
object

Represents the manager of the employee. Is also an employee.

Supported in
  • Workable
id
string

The unique identifier for employees

name
string

This represents the name of the employee

start_date
string · date-time

This represents the start date

Supported in
  • Workable
remote_data
object

Any additional data that should be passed as part of the request body. This data is not transformed by Truto and is passed as is to the remote API.

Response Body ​

id
string
REQUIRED · 

The unique identifier for employees

Supported in
  • HiBob
  • Workable
employee_number
string

This represents the employee number

Supported in
  • HiBob
  • Workable
company
object

This represents the company

Supported in
  • HiBob
id
string

The unique identifier for companies

first_name
string

This represents the first name of the employee

Supported in
  • HiBob
  • Workable
middle_name
string

This represents the middle name of the employee

last_name
string

This represents the last name of the employee

Supported in
  • HiBob
  • Workable
name
string

This represents the name of the employee

Supported in
  • HiBob
  • Workable
username
string

This represents the username

groups
object[]

This represents the groups

Supported in
  • HiBob
  • Workable
id
string

The unique identifier for groups

name
string

Group's name

type
string

Type of the group. Some underlying providers use this to differentiate between in-built and user created groups.

emails
object[]

The emails of the user

Supported in
  • HiBob
  • Workable
email
string

The email address

type
string

The type of email address

is_primary
boolean

Whether the email address is primary

phones
object[]

The phones of the user

Supported in
  • Workable
number
string

The phone number

extension
string

The extension of the phone number

type
string

The type of phone number

employments
object[]

Represents a role or employment of the employee in the company

Supported in
  • HiBob
  • Workable
id
string
REQUIRED · 

The unique identifier for employments

employee
object

Employee associated with this employment

id
string

The unique identifier for employees

job_title
string

Job title of the employee

pay_rate
number

This represents the pay rate

pay_period
string

This represents the pay period

pay_frequency
string

This represents the pay frequency

pay_currency
string

This represents the pay currency

pay_group
string

This represents the pay group

flsa_status
string

This represents the flsa status

effective_date
string · date-time

Represents the effective date of the employment

end_date
string · date-time

Represents the end date of the employment

employment_type
string

This represents the employment type

All possible enum values:
  • full_time
  • part_time
  • contract
  • internship
  • temporary
  • trainee
  • volunteer
  • per_diem
end_reason
string

Represents why the employment ended

created_at
string · date-time

This represents the date when the employments was created

updated_at
string · date-time

This represents the date when the employments was updated

home_location
object[]

This represents the home location

Supported in
  • Workable
id
string

The unique identifier for locations

name
string

This represents the name of the location

street_1
string

The first line of home address

street_2
string

The second line of home address

city
string

The city of the home address

state
string

The state/province of the home address

postal_code
string

The postal code of the home address

country
string

The country of the home address

work_location
object

This represents the work location

Supported in
  • HiBob
id
string

The unique identifier for locations

name
string

This represents the name of the location

street_1
string

The first line of work address

street_2
string

The second line of work address

city
string

The city of the work address

state
string

The state/province of the work address

postal_code
string

The postal code of the work address

country
string

The country of the work address

manager
object

Represents the manager of the employee. Is also an employee.

Supported in
  • HiBob
  • Workable
id
string

The unique identifier for employees

name
string

This represents the name of the employee

pay_group
object

This represents the pay group

id
string

The unique identifier for pay groups

ssn
string

This represents the ssn

gender
string

This represents gender

Supported in
  • Workable
ethnicity
string

This represent ethnicity

marital_status
string

This represents marital status

Supported in
  • Workable
date_of_birth
string

This represents date of birth

Supported in
  • Workable
start_date
string · date-time

This represents the start date

Supported in
  • HiBob
  • Workable
employment_status
string

This represents the employment status. If no clear mapping is available, then the raw value is returned.

All possible enum values:
  • active
  • inactive
  • pending
Supported in
  • Workable
termination_date
string · date-time

This represents the termination date

Supported in
  • HiBob
termination_type
string

Represents the type of termination. If no clear mapping exists, then raw value is returned.

All possible enum values:
  • voluntary
  • dismissed
  • redundancy
  • end_of_contract
  • retirement
  • mutual
Supported in
  • HiBob
termination_reason
string

Represents the reason for termination

Supported in
  • HiBob
avatar
string

This represents the avatar

Supported in
  • HiBob
  • Workable
tags
object[]

The employee's tags

id
string

The tag's unique identifier

name
string

The tag's name

created_at
string · date-time

This represents the date when the Employee was created

Supported in
  • HiBob
updated_at
string · date-time

This represents the date when the Employee was updated

remote_data
object

Raw data returned from the remote API call.