Skip to content

Commit 3975c6d

Browse files
TigreModeratanejch
andauthored
Update docs/gl_objects/wikis.rst
Co-authored-by: Nejc Habjan <hab.nejc@gmail.com>
1 parent f16efce commit 3975c6d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/gl_objects/wikis.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,17 +76,19 @@ Examples
7676

7777
Upload a file into a project wiki using a filesystem path::
7878

79+
page = project.wikis.get(page_slug)
7980
page.upload("filename.txt", filepath="/some/path/filename.txt")
8081

81-
Upload a file into a project wiki without a filesystem path::
82+
Upload a file into a project wiki with raw data::
8283

8384
page.upload("filename.txt", filedata="Raw data")
8485

85-
Upload a file into a project wiki using a filesystem path::
86+
Upload a file into a group wiki using a filesystem path::
8687

88+
page = group.wikis.get(page_slug)
8789
page.upload("filename.txt", filepath="/some/path/filename.txt")
8890

89-
Upload a file into a project wiki without a filesystem path::
91+
Upload a file into a group wiki using raw data::
9092

9193
page.upload("filename.txt", filedata="Raw data")
9294

0 commit comments

Comments
 (0)