summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorNejc Habjan <hab.nejc@gmail.com>2020-04-18 00:56:00 +0200
committerGitHub <noreply@github.com>2020-04-18 00:56:00 +0200
commit7907e5a4b602d22d03d71ca51c6803f634bd8a78 (patch)
treefa747894bbcf9fae54e199e3de0470991b819ba2 /docs
parentdad505c5e6aac3081ed796227e8f21d28b217ea0 (diff)
parent28eb7eab8fbe3750fb56e85967e8179b7025f441 (diff)
downloadgitlab-7907e5a4b602d22d03d71ca51c6803f634bd8a78.tar.gz
Merge pull request #1077 from Flor1an-dev/master
feat(api): added support in the GroupManager to upload Group avatars
Diffstat (limited to 'docs')
-rw-r--r--docs/gl_objects/groups.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/gl_objects/groups.rst b/docs/gl_objects/groups.rst
index d3e4d92..02d2bb0 100644
--- a/docs/gl_objects/groups.rst
+++ b/docs/gl_objects/groups.rst
@@ -61,6 +61,13 @@ Update a group::
group.description = 'My awesome group'
group.save()
+Set the avatar image for a group::
+
+ # the avatar image can be passed as data (content of the file) or as a file
+ # object opened in binary mode
+ group.avatar = open('path/to/file.png', 'rb')
+ group.save()
+
Remove a group::
gl.groups.delete(group_id)