diff options
author | Alex Holland <aholland@duosecurity.com> | 2018-07-16 17:08:15 +0000 |
---|---|---|
committer | Alex Holland <aholland@duosecurity.com> | 2018-07-16 17:08:15 +0000 |
commit | 1b3dcfc1e3ca2da565d0949d27268b22220a05d7 (patch) | |
tree | bdca54ae457794c991a0574dfe375bdadedf66e8 /doc/api | |
parent | 907dccddeb658ddad808dc6ebc3e219b6e1d223b (diff) | |
download | gitlab-ce-1b3dcfc1e3ca2da565d0949d27268b22220a05d7.tar.gz |
Update pipelines.md to have correct curl commands
Diffstat (limited to 'doc/api')
-rw-r--r-- | doc/api/pipelines.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/pipelines.md b/doc/api/pipelines.md index ebae68fe389..22cf9afbcd2 100644 --- a/doc/api/pipelines.md +++ b/doc/api/pipelines.md @@ -151,7 +151,7 @@ POST /projects/:id/pipelines/:pipeline_id/retry | `pipeline_id` | integer | yes | The ID of a pipeline | ``` -curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v4/projects/1/pipelines/46/retry" +curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v4/projects/1/pipelines/46/retry" ``` Response: @@ -197,7 +197,7 @@ POST /projects/:id/pipelines/:pipeline_id/cancel | `pipeline_id` | integer | yes | The ID of a pipeline | ``` -curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v4/projects/1/pipelines/46/cancel" +curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v4/projects/1/pipelines/46/cancel" ``` Response: |