Updates a badge of a project.

PUT /projects/{id}/badges/{badge_id}

This feature was introduced in GitLab 10.6.

Path parameters

  • id string Required

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

  • badge_id integer(int32) Required
application/json

Body

  • image_url string

    URL of the badge image

  • name string

    Name for the badge

Responses

  • 200 application/json

    Updates a badge of a project.

    Hide response attributes Show response attributes object
    • name string
    • image_url string
    • rendered_image_url string
    • id string
    • kind string
PUT /projects/{id}/badges/{badge_id}
curl \
 --request PUT 'https://www.gitlab.com/api/v4/projects/{id}/badges/{badge_id}' \
 --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 (200)
{
  "name": "string",
  "link_url": "string",
  "image_url": "string",
  "rendered_link_url": "string",
  "rendered_image_url": "string",
  "id": "string",
  "kind": "string"
}