summaryrefslogtreecommitdiff
path: root/docs/gl_objects
diff options
context:
space:
mode:
Diffstat (limited to 'docs/gl_objects')
-rw-r--r--docs/gl_objects/projects.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/gl_objects/projects.rst b/docs/gl_objects/projects.rst
index 9e90c9b..f7bb4b3 100644
--- a/docs/gl_objects/projects.rst
+++ b/docs/gl_objects/projects.rst
@@ -84,6 +84,13 @@ Update a project::
project.snippets_enabled = 1
project.save()
+Set the avatar image for a project::
+
+ # the avatar image can be passed as data (content of the file) or as a file
+ # object opened in binary mode
+ project.avatar = open('path/to/file.png', 'rb')
+ project.save()
+
Delete a project::
gl.projects.delete(project_id)