Adds a badge to a group.

POST /groups/{id}/badges

This feature was introduced in GitLab 10.6.

Path parameters

  • id string Required

    The ID or URL-encoded path of the group owned by the authenticated user.

application/json

Body Required

  • image_url string Required

    URL of the badge image

  • name string

    Name for the badge

Responses

  • 201 application/json

    Adds a badge to a group.

    Hide response attributes Show response attributes object
    • name string
    • image_url string
    • rendered_image_url string
    • id string
    • kind string
POST /groups/{id}/badges
curl \
 --request POST 'https://www.gitlab.com/api/v4/groups/{id}/badges' \
 --header "Private-Token: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"link_url":"string","image_url":"string","name":"string"}'
Request examples
{
  "link_url": "string",
  "image_url": "string",
  "name": "string"
}
Response examples (201)
{
  "name": "string",
  "link_url": "string",
  "image_url": "string",
  "rendered_link_url": "string",
  "rendered_image_url": "string",
  "id": "string",
  "kind": "string"
}