Update an employee
Update an employee. Only the provided fields are changed; omitted fields are left untouched.
teams replaces the full set of teams. job, workLocation, legalEntity and teams accept either an existing reference id or a name — a new reference is created when the name does not match an existing one.
Authorizations
Use your Primo API key in the Authorization header as Bearer <API_KEY>.
Path Parameters
Body
First name of the employee
1Last name of the employee
1Work email address of the employee
^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$Personal email address of the employee
^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$Phone number of the employee
Gender of the employee
MALE, FEMALE, OTHER, PREFER_NOT_TO_DISCLOSE URL of the employee profile picture
ID of the manager employee
Employment type of the employee
INTERNAL, CONTRACTOR Job title. Created if it does not exist yet.
Teams the employee belongs to. Replaces the current set. Teams are created if they do not exist yet.
Work location. Created if it does not exist yet.
Legal entity. Created if it does not exist yet.
Response
Teams the employee belongs to. Empty only when no team is assigned — group by name to count per team.
Job titles held by the employee. Empty only when no job title is assigned.
Employee groups the employee belongs to.
Null when the employee has no onboarding.
PENDING, SCHEDULED, IN_PROGRESS, CLOSED, CANCELED Null when the employee has no offboarding.
PENDING, SCHEDULED, IN_PROGRESS, CLOSED, CANCELED Ids of the devices assigned to the employee.
Ids of the accessories assigned to the employee.
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$Employment type of the employee
INTERNAL, CONTRACTOR Whether the employee works remotely. Derived from the absence of a work location: an employee with no assigned work location has no office to deliver equipment to and is treated as remote.
Office the employee is attached to. Null for a remote employee.
Legal entity employing them.
Id of the manager employee.
Employment start date (ISO 8601).
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$Employment end date (ISO 8601).
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$Personal email address of the employee
Personal (home) address of the employee, when known. Use it as the HOME shipping address when ordering equipment for a remote employee. Null when the employee record has no address — ask for one instead of composing it.