List API file edit failure conditions in docs

This commit is contained in:
Jacob Vosmaer 2014-08-06 14:28:22 +02:00
parent 11d5ad2f17
commit aa5e663f85

View file

@ -80,6 +80,13 @@ Parameters:
- `content` (required) - New file content
- `commit_message` (required) - Commit message
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:
- the `file_path` contained `/../` (attempted directory traversal);
- the new file contents were identical to the current file contents, i.e. the
user tried to make an empty commit;
- the branch was updated by a Git push while the file edit was in progress.
## Delete existing file in repository
```