Skip to content

Commit

Permalink
Update projects.py
Browse files Browse the repository at this point in the history
Add missing attributes to file.create in order to make it work.
  • Loading branch information
ToonMeynen committed Apr 13, 2018
1 parent f3533cd commit 629b1e1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/gl_objects/projects.py
Expand Up @@ -195,11 +195,13 @@

# files create
# v4
f = project.files.create({'file_path': 'testfile',
f = project.files.create({'file_path': 'testfile.txt',
'branch': 'master',
'content': file_content,
'author_email': 'test@example.com',
'author_name': 'yourname',
'encoding': 'text',
'commit_message': 'Create testfile'})

# v3
f = project.files.create({'file_path': 'testfile',
'branch_name': 'master',
Expand Down

0 comments on commit 629b1e1

Please sign in to comment.