Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'doc/api/project_badges.md')
-rw-r--r--doc/api/project_badges.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/api/project_badges.md b/doc/api/project_badges.md
index a17f7d15e76..c6bcaa1ae9c 100644
--- a/doc/api/project_badges.md
+++ b/doc/api/project_badges.md
@@ -109,7 +109,9 @@ POST /projects/:id/badges
| `name` | string | no | Name of the badge |
```shell
-curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" --data "link_url=https://gitlab.com/gitlab-org/gitlab-foss/commits/master&image_url=https://shields.io/my/badge1&name=mybadge" "https://gitlab.example.com/api/v4/projects/:id/badges"
+curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" \
+ --data "link_url=https://gitlab.com/gitlab-org/gitlab-foss/commits/master&image_url=https://shields.io/my/badge1&name=mybadge" \
+ "https://gitlab.example.com/api/v4/projects/:id/badges"
```
Example response: