summaryrefslogtreecommitdiff
path: root/docs/api-usage.rst
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain.pocentek@objectif-libre.com>2016-01-30 16:38:16 +0100
committerGauvain Pocentek <gauvain.pocentek@objectif-libre.com>2016-01-30 16:38:16 +0100
commit3711f198a4e02144d9d49b68420d24afc9f4f957 (patch)
treead6edd6bf91ac4196912ba3aecc59ce5b5a1bbbb /docs/api-usage.rst
parentc579c8081af787945c24c75b9ed85b2f0d8bc6b9 (diff)
downloadgitlab-3711f198a4e02144d9d49b68420d24afc9f4f957.tar.gz
Add sudo support
Diffstat (limited to 'docs/api-usage.rst')
-rw-r--r--docs/api-usage.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/api-usage.rst b/docs/api-usage.rst
index 85e4b1f..b6a498d 100644
--- a/docs/api-usage.rst
+++ b/docs/api-usage.rst
@@ -117,3 +117,13 @@ Use the ``all`` parameter to get all the items:
.. code-block:: python
all_groups = gl.groups.list(all=True)
+
+Sudo
+====
+
+If you have the administrator status, you can use ``sudo`` to act as another
+user. For example:
+
+.. code-block:: python
+
+ p = gl.projects.create({'name': 'awesome_project'}, sudo='user1')