#!/usr/bin/env python3importzulip# Pass the path to your zuliprc file here.client=zulip.Client(config_file="~/zuliprc")request={"name":"marketing","description":"The marketing team.","members":user_ids,}result=client.create_user_group(request)print(result)
The list of IDs of individual users in the collection of users with this permission.
direct_subgroups: (integer)[]
The list of IDs of the groups in the collection of users with this permission.
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.
A typical successful JSON response may look like:
{"msg":"","result":"success"}
An example JSON error response for when the one of the users does not exist:
{"code":"BAD_REQUEST","msg":"Invalid user ID: 500","result":"error"}