Update User Profiles in Bulk

Hello,

I'm looking for a way to update multiple users profiles to remove any personal or work phone numbers that have been added to an agents profile. I've found the article on updating 1 user's profile but how would I go about updating it for multiple (100's) users?

Thanks,
Mo

Hi Maurice,

Unfortunately, there is no endpoint for updating users in bulk. You will have to iterate over the user Ids and call the PATCH /api/v2/users/{userId} for each one.

Thank you for the feedback, Ronan. I assume I will also need to include all of the required fields, including the agent version in the call?

No, fortunately, that's not necessary since PATCH is used for a partial update of a resource. The user's current version is required though and that can be retrieved by calling GET /api/v2/users/{userId}

1 Like

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.