#!/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":[6,7,8,10],}result=client.create_user_group(request)print(result)
An array containing the user IDs of the initial members for the
new user group.
can_mention_groupintegeroptional
Example: 11
ID of the user group whose members are allowed to mention the new
user group.
This setting cannot be set to "role:internet" and "role:owners"
system groups.
Changes: Before Zulip 8.0 (feature level 198),
the can_mention_group setting was named can_mention_group_id.
New in Zulip 8.0 (feature level 191). Previously, groups
could be mentioned if and only if they were not system groups.
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"}