summaryrefslogtreecommitdiff
path: root/doc/api/builds.md
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-02-16 09:30:58 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-02-19 17:24:59 +0100
commit7d5a182624acd2e48eba2531f7597a93b117c056 (patch)
tree53e51427e4186204a3e61689b4990a99320c2b2a /doc/api/builds.md
parent08b8f489290c3b0456fcaef3064d1c333717cb6f (diff)
downloadgitlab-ce-7d5a182624acd2e48eba2531f7597a93b117c056.tar.gz
Use POST method instead of DELETE when erasing a build
Discussion: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/2560#note_3742042
Diffstat (limited to 'doc/api/builds.md')
-rw-r--r--doc/api/builds.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/api/builds.md b/doc/api/builds.md
index 04128131165..6977dedfa9e 100644
--- a/doc/api/builds.md
+++ b/doc/api/builds.md
@@ -344,20 +344,20 @@ Example of response
Erase a single build of a project (remove build artifacts and a build trace)
```
-DELETE /projects/:id/builds/:build_id/content
+POST /projects/:id/builds/:build_id/erase
```
Parameters
-| Attribute | Type | required | Description |
-|-----------|---------|----------|---------------------|
+| Attribute | Type | required | Description |
+|-------------|---------|----------|---------------------|
| `id` | integer | yes | The ID of a project |
-| `build_id` | integer | yes | The ID of a build |
+| `build_id` | integer | yes | The ID of a build |
Example of request
```
-curl -X DELETE -H "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/builds/1/content"
+curl -X POST -H "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/builds/1/erase"
```
Example of response