Commit 22aa5c55 authored by Matija Čupić's avatar Matija Čupić

Add docs for deleting a pipeline via API

parent de1a3a3e
...@@ -93,6 +93,23 @@ Example of response ...@@ -93,6 +93,23 @@ Example of response
} }
``` ```
## Delete a pipeline
> [Introduced](https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/22988) in GitLab 11.6
```
DELETE /projects/:id/pipelines/:pipeline_id
```
| Attribute | Type | Required | Description |
|------------|---------|----------|---------------------|
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](README.md#namespaced-path-encoding) owned by the authenticated user |
| `pipeline_id` | integer | yes | The ID of a pipeline |
```
curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" --request "DELETE" "https://gitlab.example.com/api/v4/projects/1/pipelines/46"
```
## Create a new pipeline ## Create a new pipeline
> [Introduced][ce-7209] in GitLab 8.14 > [Introduced][ce-7209] in GitLab 8.14
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment