Skip to content
Snippets Groups Projects
Commit 206efcda authored by Bruno Melli's avatar Bruno Melli
Browse files

Fix the curl command for deleting files (DELETE instead of PUT)

parent 92a91a88
No related branches found
No related tags found
1 merge request!8245Fix the curl command for deleting files (DELETE instead of PUT)
Loading
@@ -113,7 +113,7 @@ DELETE /projects/:id/repository/files
Loading
@@ -113,7 +113,7 @@ DELETE /projects/:id/repository/files
``` ```
   
```bash ```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: Example response:
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment