Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Melli <gmjskier@gmail.com>2016-12-22 09:14:22 +0300
committerBruno Melli <gmjskier@gmail.com>2016-12-22 09:14:22 +0300
commit206efcdac47553668e961728f82f2b7204d21acf (patch)
treeef31d935169cbb4f821552e7dea70926a2f63ac1 /doc/api/repository_files.md
parent92a91a880327877fe3ac1825a4c5b638333cf586 (diff)
Fix the curl command for deleting files (DELETE instead of PUT)
Diffstat (limited to 'doc/api/repository_files.md')
-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: