Create a badge for a project
POST
/api/v4/projects/{id}/badges
Creates a badge for a specified project.
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 project owned by the authenticated user.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
link_url
required
URL of the badge link
string
image_url
required
URL of the badge image
string
name
Name for the badge
string
Examplegenerated
{ "link_url": "example", "image_url": "example", "name": "example"}Responses
Section titled “Responses”Created
Media typeapplication/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