<- Team API

Team API

All versions ->

Bulk update team members

POST

 /v2/team-members/bulk-update

Updates multiple TeamMember objects.

The updated TeamMember objects are returned on successful updates. This process is non-transactional and processes as much of the request as possible. If one of the updates in the request cannot be successfully processed, the request is not marked as failed, but the body of the response contains explicit error information for the failed update. Learn about Troubleshooting the Team API.

Permissions:EMPLOYEES_WRITE
Try in API Explorer
Link to section

Request body

Example code

Link to section

team_members

Required

The data used to update the TeamMember objects. Each key is the team_member_id that maps to the UpdateTeamMemberRequest. The maximum number of update objects is 25.

For each team member, include the fields to add, change, or clear. Fields can be cleared using a null value. To update wage_setting.job_assignments, you must provide the complete list of job assignments. If needed, call ListJobs to get the required job_id values.

Link to section

Response fields

Link to section

team_members

The successfully updated TeamMember objects. Each key is the team_member_id that maps to the UpdateTeamMemberRequest.

Link to section

errors

The errors that occurred during the request.