List API file edit failure conditions in docs
This commit is contained in:
parent
11d5ad2f17
commit
aa5e663f85
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue