Legacy Dev Forum Posts

 View Only

Sign Up

Update User Profiles in Bulk

  • 1.  Update User Profiles in Bulk

    Posted 06-05-2025 18:21

    Maurice_Ford1 | 2022-01-25 10:56:57 UTC | #1

    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


    anon11147534 | 2022-01-25 12:46:25 UTC | #2

    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.


    Maurice_Ford1 | 2022-01-25 13:10:00 UTC | #3

    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?


    anon11147534 | 2022-01-25 13:56:29 UTC | #4

    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}


    system | 2022-02-25 13:56:37 UTC | #5

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


    This post was migrated from the old Developer Forum.

    ref: 13318