summaryrefslogtreecommitdiff
path: root/docs/gl_objects
diff options
context:
space:
mode:
authorErik Johnson <erik.johnson@level3.com>2019-10-18 09:38:15 -0500
committerErik Johnson <erik.johnson@level3.com>2019-10-21 13:10:20 -0500
commit5bd8947bd16398aed218f07458aef72e67f2d130 (patch)
tree78717e9434f44ab8a0df96565d7ad03c88b65ed9 /docs/gl_objects
parentd853a767ac8835615e0fded3087f55ca8594c1ed (diff)
downloadgitlab-5bd8947bd16398aed218f07458aef72e67f2d130.tar.gz
docs: projects get requires id
Also, add an example value for project_id to the other projects.get() example.
Diffstat (limited to 'docs/gl_objects')
-rw-r--r--docs/gl_objects/projects.rst3
1 files changed, 1 insertions, 2 deletions
diff --git a/docs/gl_objects/projects.rst b/docs/gl_objects/projects.rst
index 15d8fe4..d766847 100644
--- a/docs/gl_objects/projects.rst
+++ b/docs/gl_objects/projects.rst
@@ -63,9 +63,8 @@ Results can also be sorted using the following parameters:
Get a single project::
# Get a project by ID
+ project_id = 851
project = gl.projects.get(project_id)
- # Get a project by userspace/name
- project = gl.projects.get('myteam/myproject')
Create a project::