Retrieve a badge preview for a group
GET
/api/v4/groups/{id}/badges/render
Previews the final link_url and image_url for a specified group after resolving the placeholder interpolation.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” id
required
string
The ID or URL-encoded path of the group owned by the authenticated user.
Query Parameters
Section titled “ Query Parameters ” link_url
required
string
URL of the badge link
image_url
required
string
URL of the badge image
Responses
Section titled “ Responses ”OK
Media type application/json
object
name
string
link_url
string
image_url
string
rendered_link_url
string
rendered_image_url
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"}Bad Request
Not Found