summaryrefslogtreecommitdiff
path: root/docs/gl_objects/projects.py
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2017-10-08 08:46:53 +0200
committerGauvain Pocentek <gauvain@pocentek.net>2017-10-08 09:03:02 +0200
commit72664c45baa59507028aeb3986bba42c75c3cbb8 (patch)
treeba704764ef342761cfae0c59bf88c021c0240e96 /docs/gl_objects/projects.py
parent87649035230cc1161a3e8e8e648d4f65f8480ac0 (diff)
downloadgitlab-72664c45baa59507028aeb3986bba42c75c3cbb8.tar.gz
[docs] update the file upload samples
Closes #335
Diffstat (limited to 'docs/gl_objects/projects.py')
-rw-r--r--docs/gl_objects/projects.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/gl_objects/projects.py b/docs/gl_objects/projects.py
index f0a4d1a..849d6f4 100644
--- a/docs/gl_objects/projects.py
+++ b/docs/gl_objects/projects.py
@@ -379,7 +379,7 @@ project.upload("filename.txt", filedata="Raw data")
# end project file upload with data
# project file upload markdown
-uploaded_file = project.upload_file("filename.txt", filedata="data")
+uploaded_file = project.upload("filename.txt", filedata="data")
issue = project.issues.get(issue_id)
issue.notes.create({
"body": "See the attached file: {}".format(uploaded_file["markdown"])
@@ -387,7 +387,7 @@ issue.notes.create({
# project file upload markdown
# project file upload markdown custom
-uploaded_file = project.upload_file("filename.txt", filedata="data")
+uploaded_file = project.upload("filename.txt", filedata="data")
issue = project.issues.get(issue_id)
issue.notes.create({
"body": "See the [attached file]({})".format(uploaded_file["url"])