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.
1 parent f3533cd commit 629b1e1Copy full SHA for 629b1e1
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