We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f3533cd + 629b1e1 commit 2b9ae5cCopy full SHA for 2b9ae5c
docs/gl_objects/projects.py
@@ -195,11 +195,13 @@
195
196
# files create
197
# v4
198
-f = project.files.create({'file_path': 'testfile',
+f = project.files.create({'file_path': 'testfile.txt',
199
'branch': 'master',
200
'content': file_content,
201
+ 'author_email': 'test@example.com',
202
+ 'author_name': 'yourname',
203
+ 'encoding': 'text',
204
'commit_message': 'Create testfile'})
-
205
# v3
206
f = project.files.create({'file_path': 'testfile',
207
'branch_name': 'master',
0 commit comments