diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-30 15:09:15 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-30 15:09:15 +0000 |
commit | 536aa3a1f4b96abc4ca34489bf2cbe503afcded7 (patch) | |
tree | 88d08f7dfa29a32d6526773c4fe0fefd9f2bc7d1 /doc/api/system_hooks.md | |
parent | 50ae4065530c4eafbeb7c5ff2c462c48c02947ca (diff) | |
download | gitlab-ce-536aa3a1f4b96abc4ca34489bf2cbe503afcded7.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/api/system_hooks.md')
-rw-r--r-- | doc/api/system_hooks.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/api/system_hooks.md b/doc/api/system_hooks.md index b09b11dfd2a..1e34adc5320 100644 --- a/doc/api/system_hooks.md +++ b/doc/api/system_hooks.md @@ -17,7 +17,7 @@ GET /hooks Example request: -```bash +```shell curl --header "PRIVATE-TOKEN: <your_access_token>" https://gitlab.example.com/api/v4/hooks ``` @@ -58,7 +58,7 @@ POST /hooks Example request: -```bash +```shell curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/hooks?url=https://gitlab.example.com/hook" ``` @@ -91,7 +91,7 @@ GET /hooks/:id Example request: -```bash +```shell curl --header "PRIVATE-TOKEN: <your_access_token>" https://gitlab.example.com/api/v4/hooks/2 ``` @@ -122,6 +122,6 @@ DELETE /hooks/:id Example request: -```bash +```shell curl --request DELETE --header "PRIVATE-TOKEN: <your_access_token>" https://gitlab.example.com/api/v4/hooks/2 ``` |