#!/usr/bin/env python3importzulip# Pass the path to your zuliprc file here.client=zulip.Client(config_file="~/zuliprc")request={"delete":[8,10],"add":[11],}result=client.update_user_group_members(user_group_id,request)print(result)
The list of user IDs to be removed from the user group.
add(integer)[]optional
Example: [12, 13]
The list of user IDs to be added to the user group.
Response
Example response(s)
Changes: As of Zulip 7.0 (feature level 167), if any
parameters sent in the request are not supported by this
endpoint, a successful JSON response will include an
ignored_parameters_unsupported array.