Create a new vulnerability
POST
/api/v4/projects/{id}/vulnerabilities
Creates a new vulnerability from a confirmed finding.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Request Body required
Section titled “ Request Body required ” Media type application/json
object
finding_id
required
The id of confirmed vulnerability finding
integer
Example generated
{ "finding_id": 1}Responses
Section titled “ Responses ”Created
Media type application/json
object
id
integer format: int64
title
string
description
string
state
string
severity
string
report_type
string
project
object
id
integer format: int64
description
string
name
string
name_with_namespace
string
path
string
path_with_namespace
string
created_at
string format: date-time
finding
object
resolved_on_default_branch
boolean
project_default_branch
string
author_id
integer format: int64
resolved_by_id
integer format: int64
dismissed_by_id
integer format: int64
confirmed_by_id
integer format: int64
created_at
string format: date-time
updated_at
string format: date-time
resolved_at
string format: date-time
dismissed_at
string format: date-time
confirmed_at
string format: date-time
last_edited_at
string format: date-time
start_date
string format: date-time
updated_by_id
integer format: int64
last_edited_by_id
integer format: int64
due_date
string format: date-time
Example
{ "project": { "id": 1, "description": "desc", "name": "project1", "name_with_namespace": "John Doe / project1", "path": "project1", "path_with_namespace": "namespace1/project1", "created_at": "2020-05-07T04:27:17.016Z" }}Bad Request
Not Found