Skip to main content
Best Answer

PUT /manage/v1/user/mass_edit Updating the additional fields

  • June 1, 2023
  • 1 reply
  • 147 views

Hi,

I am trying to update an additional field to multiple users in batches. If I have 100 users_ids in the the array, I want to update the additional field value for each user.

Input:
{

        "user_ids": [

1234,

5678,

.

.

100 user_ids

        ],

        "additional_fields": {

            "24": "15"

        }

}

 

I want to insert different additional field for each user. From the above request body, it will update “15” for all the 100 users, but i want to update the”24” to “100” for user_id 1234 and “200” for user_id 5678 and so on.

 

I know we have the /manage/v1/user/1234 endpoint to update additional fields for each user. But, I want to do this in batches of users with different additional fields. The reason to do this is to not reach the 1000 API calls per hour limit.

Best answer by Bfarkas

The endpoint format you are trying to use in batches does not look like it supports individualized updates. Can you isolate and make sub-batches of those who do have the same fields and update to those fields as a middleground?

Otherwise, you are doing individual updates, and you might be better off leveraging the CSV bulk update users to avoid the limit.

View original
Did this post help you find an answer to your question?

1 reply

Bfarkas
Hero III
Forum|alt.badge.img+5
  • Hero III
  • 3582 replies
  • Answer
  • June 4, 2023

The endpoint format you are trying to use in batches does not look like it supports individualized updates. Can you isolate and make sub-batches of those who do have the same fields and update to those fields as a middleground?

Otherwise, you are doing individual updates, and you might be better off leveraging the CSV bulk update users to avoid the limit.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings