GET/v1/badge/violations/project/{name}/{version}

Get a project policy violations badge

Retrieves an SVG badge showing current policy violation metrics for a project identified by name and version. Use name and version to select the project whose badge you want to display. The badge is unavailable when badges are disabled.

2 parameters
namestringrequired
The name of the project to retrieve the policy violations badge for.
versionstringrequired
The version of the project to retrieve the policy violations badge for.

3 status codes
200Returns an SVG image displaying the project's current policy violation metrics.
403Returned when badges are disabled.
404Returned when the project could not be found.

Error handling

A 403 is returned when badges are disabled. A 404 is returned when the project cannot be found. The name and version path parameters must identify an existing project.