Use new API for add_group_owner

Closes #61
This commit is contained in:
Dominik George
2022-07-28 22:22:03 +02:00
parent 062904fd2a
commit 8971629bcb
+1 -1
View File
@@ -1119,7 +1119,7 @@ class DiscourseClient(object):
"""
return self._put(
"/admin/groups/{0}/owners.json".format(groupid), usernames=username
"/admin/groups/{0}/owners.json".format(groupid), **{"group[usernames]": username}
)
def delete_group_owner(self, groupid, userid):