diff options
author | Roman Safronov <electroma@gmail.com> | 2017-06-06 13:55:29 +0000 |
---|---|---|
committer | Grzegorz Bizon <grzegorz@gitlab.com> | 2017-06-06 13:55:29 +0000 |
commit | 1110def8e21d4927a127783d468fbddf3cc886c7 (patch) | |
tree | ef057bd6a3e1d7964723e6364e44ec1fe2c3ae45 /doc/api/repository_files.md | |
parent | 9f3a1203dfd3452a929dc70d9b25cbf2457c353a (diff) | |
download | gitlab-ce-1110def8e21d4927a127783d468fbddf3cc886c7.tar.gz |
Introduce optimistic locking support via optional parameter last_commit_id on File Update API
Diffstat (limited to 'doc/api/repository_files.md')
-rw-r--r-- | doc/api/repository_files.md | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/api/repository_files.md b/doc/api/repository_files.md index 0b5782a8cc4..18ceb8f779e 100644 --- a/doc/api/repository_files.md +++ b/doc/api/repository_files.md @@ -111,6 +111,7 @@ Parameters: - `author_name` (optional) - Specify the commit author's name - `content` (required) - New file content - `commit_message` (required) - Commit message +- `last_commit_id` (optional) - Last known file commit id If the commit fails for any reason we return a 400 error with a non-specific error message. Possible causes for a failed commit include: |