Skip to content

Update a badge for a group

PUT
/api/v4/groups/{id}/badges/{badge_id}

Updates a specified badge for a group.

id
required
string

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

badge_id
required
integer

The badge ID

Media type application/json
object
link_url

URL of the badge link

string
nullable
image_url

URL of the badge image

string
nullable
name

Name for the badge

string
nullable
Example generated
{
"link_url": "example",
"image_url": "example",
"name": "example"
}

OK

Media type application/json
object
name
string
link_url
string
image_url
string
rendered_link_url
string
rendered_image_url
string
id
integer format: int64
kind
string
Example
{
"name": "Pipeline Status",
"link_url": "https://example.gitlab.com",
"image_url": "https://example.gitlab.com",
"rendered_link_url": "https://example.gitlab.com",
"rendered_image_url": "https://example.gitlab.com",
"id": 1,
"kind": "project"
}

Bad Request

Not Found