Update an employee
/v1/employees/{id}Changes the fields you send and leaves the rest. Send null to clear an optional field. A new start date or birthday moves the rewards that depend on it, and a new email is where their rewards are sent from then on. Sending the same change again is safe. The API can't archive someone who has left, or restore them: do that in the Teambrite dashboard, under Employees, where you can see which scheduled rewards it cancels.
Needs a key with the employee:write scope.
Path parameters
idstringThe employee's ID.
Body
fullNamestringTheir full name.
emailstringTheir work email. Rewards are sent here, and no two employees in your company can share one. Capitals don't matter.
startDatedate or nullThe day they started. Work anniversary programs count from it.
birthdaystring or nullTheir birthday as
MM-DD. Send no year: Teambrite never keeps one. Whether coworkers see it stays their own choice.timezonestring or nullTheir IANA time zone, such as
America/Toronto.externalIdstring or nullThe ID your own system uses for them. No two employees in your company can share one.
externalIdSourcestring or nullThe system
externalIdcomes from, such asworkday.
Response
200: Their profile after the change.
idstringThe employee's ID, which is also in the address of their dashboard profile. Use it as
employeeIdwhen you send a metric value.fullNamestringThe employee's full name.
emailstring or nullTheir work email.
startDatedate or nullThe day they started.
yearsOfServiceinteger or nullWhole years since
startDate, as of today in your company's time zone. Someone who started on 29 February reaches the next year on 28 February in other years.nullwith no start date, or one still to come.birthdaystring or nullTheir birthday as
MM-DD. Teambrite keeps no birth year.nullif it's missing or they have made it private, and the two aren't told apart.avatarUrlstring or nullThe address of the picture they uploaded.
timezonestring or nullTheir IANA time zone, such as
America/Toronto.externalIdstring or nullThe ID your own system uses for them.
externalIdSourcestring or nullThe system
externalIdcame from.
Errors
400REQUEST_BODY_INVALID: The body has a field that is unknown, missing or out of range.API_QUERY_INVALID: A query parameter, or an ID in the path, is unknown or not in the right form.401API_KEY_INVALID: The key is missing, wrong, expired or revoked.403API_KEY_SCOPE_MISSING: The key is valid but wasn't given the scope this endpoint needs.PLAN_UPGRADE_REQUIRED: Your plan doesn't include the API.COMPANY_CLOSED: Your company has closed its Teambrite account.404EMPLOYEE_NOT_FOUND: No employee in your company has this ID.409EMPLOYEE_EMAIL_TAKEN: Another employee in your company already has this email.EMPLOYEE_EXTERNAL_ID_TAKEN: Another employee in your company already has thisexternalId.411REQUEST_LENGTH_REQUIRED: The request didn't declare its length.413REQUEST_TOO_LARGE: The body is over 1 MB.422EMPLOYEE_INACTIVE: The employee is no longer active.429API_KEY_RATE_LIMITED: The key is over 600 requests a minute.