badges

Create a badge for a project

Creates a badge for a specified project.

post/api/v4/projects/{id}/badges

Request

  • Base URL
    https://gitlab.com
  • Auth
    none declared

Path parameters

idstring required

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

Request body

link_urlstring required

URL of the badge link

image_urlstring required

URL of the badge image

namestring

Name for the badge

Response

Create a badge for a project

namestring required
link_urlstring required
image_urlstring required
rendered_link_urlstring required
rendered_image_urlstring required
idinteger required
kindstring required

Example response

{
  "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"
}

Changes

No recorded changes to this operation across all 5 revisions of this API.