From 629b1e1c9488cea4bf853a42622dd7f182ee47ed Mon Sep 17 00:00:00 2001 From: Twan Date: Fri, 13 Apr 2018 10:25:27 +0200 Subject: [PATCH] Update projects.py Add missing attributes to file.create in order to make it work. --- docs/gl_objects/projects.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/gl_objects/projects.py b/docs/gl_objects/projects.py index 27d250bfa..22c805d8d 100644 --- a/docs/gl_objects/projects.py +++ b/docs/gl_objects/projects.py @@ -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',