Skip to content
Snippets Groups Projects
Commit 64331de3 authored by Rémy Coutable's avatar Rémy Coutable
Browse files

Merge branch 'fix-api-delete-file-example' into 'master'

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

See merge request !8245
parents 0fc47429 206efcda
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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:
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment