PUT - Users Bulk
Updates specified list of User's options, such as extension, name and etc.
Note: Available options to change can be seen through: get.user_by_id()
Parameters
users (list): List of specified User IDs to update
updates (dict): The updates to be applied to the list of Users e.g {"extension":"9999"}
Returns
Dict: Returns the changes made including the list of User IDs and updates.
How To Use:
my_users = [
"[email protected]",
"[email protected]"
]
my_user_payload = {
"address": {
"addressLine1": "Bldg 1",
"addressLine2": "Suite 2",
"city": "Cincinnat",
"stateOrProvince": "Ohio",
"zipOrPostalCode": "45204",
"country": "US"
}
}
my_api.users.put_users_bulk(
my_users,
my_user_payload
)
Example Data Returned (Formatted)
[
{
"users": [
{"userId": "[email protected]"},
{"userId": "[email protected]"}
],
"data": {
"address": {
"addressLine1": "Bldg 1",
"addressLine2": "Suite 2",
"city": "Cincinnat",
"stateOrProvince": "Ohio",
"zipOrPostalCode": "45204",
"country": "US"
}
}
}
]
Last updated
Was this helpful?