diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-11-11 14:58:06 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-11-11 14:58:06 +0200 |
commit | c77d957b365bd023b1dc73b5f5111b4fe262bfbe (patch) | |
tree | 3e954af02803d595ac496656d711542592d7d7b3 /doc/api/repositories.md | |
parent | 75303241b1ce6a9cb38e40f48ae1bd2ad11808b3 (diff) | |
download | gitlab-ce-c77d957b365bd023b1dc73b5f5111b4fe262bfbe.tar.gz |
API: Edit file in repository
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'doc/api/repositories.md')
-rw-r--r-- | doc/api/repositories.md | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/api/repositories.md b/doc/api/repositories.md index 17f388194d2..9ec6ba74125 100644 --- a/doc/api/repositories.md +++ b/doc/api/repositories.md @@ -384,3 +384,16 @@ Parameters: + `branch_name` (required) - The name of branch + `content` (required) - File content + `commit_message` (required) - Commit message + +## Update existing file in repository + +``` +PUT /projects/:id/repository/files +``` + +Parameters: + ++ `file_path` (required) - Full path to file. Ex. lib/class.rb ++ `branch_name` (required) - The name of branch ++ `content` (required) - New file content ++ `commit_message` (required) - Commit message |