Update Team Member

What's the purpose of this endpoint?

Update a user. You can update a user's attributes and also move them to a different subteam by passing the manager_email attribute.

How it works

We need the user token_id parameter to be sent. If no user is found the API will return a 404 error.

Params

All of these parameters are described in the member model. For more information, please read that table first. Remember to send only the parameters to update.

ParameterTypeRequiredNotes
emailstringnoMust be unique, otherwise the API will return a 422 error
first_namestringno
last_namestringno
phonestringno
employee_numberstringno
rolestringnoPossible values are the same as described in the model of members. If you update an admin or manager and change the role to member, please verify first that the user doesn't have any members under him. The system would return an exception if you try to change an admin/manager with an established team. If you change the role from member to admin/manager we're going to create a new subteam for that user.
start_datestringnoFormat: yyyy-mm-dd
end_datestringnoFormat: yyyy-mm-dd
leave_start_datestringnoFormat: yyyy-mm-dd
leave_end_datestringnoFormat: yyyy-mm-dd
leave_reasonstringno
manager_emailstringnoEmail of the manager who the user reports to, if it is different from the existing manager_email then we will move the user to the new manager_email team. It is important to know this manager must already exist on your team and must already have a role of manager or admin. If these two requirements are not true, the endpoint will return a 422 error
program_namestringnoSpecify the program name the employee should be assigned to. If you want to remove the employee from their program send no_program
metadataarray of objectsnoArray of metadata objects that can be assigned to the employee. See table below.

Metadata object

ParameterTypeRequiredNotes
nameStringYesName of the metadatum
valueStringYesValue for the metadatum. If the value is null, the metadatum will be archived in Everlance
Language
Credentials
Bearer
Click Try It! to start a request and see the response here!