summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Melli <gmjskier@gmail.com>2016-12-21 23:14:22 -0700
committerBruno Melli <gmjskier@gmail.com>2016-12-21 23:14:22 -0700
commit206efcdac47553668e961728f82f2b7204d21acf (patch)
treeef31d935169cbb4f821552e7dea70926a2f63ac1
parent92a91a880327877fe3ac1825a4c5b638333cf586 (diff)
downloadgitlab-ce-206efcdac47553668e961728f82f2b7204d21acf.tar.gz
Fix the curl command for deleting files (DELETE instead of PUT)
-rw-r--r--doc/api/repository_files.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/repository_files.md b/doc/api/repository_files.md
index 8a6baed5987..c6ad78754a1 100644
--- a/doc/api/repository_files.md
+++ b/doc/api/repository_files.md
@@ -113,7 +113,7 @@ DELETE /projects/:id/repository/files
```
```bash
-curl --request PUT --header 'PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK' 'https://gitlab.example.com/api/v3/projects/13083/repository/files?file_path=app/project.rb&branch_name=master&author_email=author%40example.com&author_name=Firstname%20Lastname&commit_message=delete%20file'
+curl --request DELETE --header 'PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK' 'https://gitlab.example.com/api/v3/projects/13083/repository/files?file_path=app/project.rb&branch_name=master&author_email=author%40example.com&author_name=Firstname%20Lastname&commit_message=delete%20file'
```
Example response: