Skip to content

Dismiss a vulnerability

POST
/api/v4/vulnerabilities/{id}/dismiss

Dismisses a specified vulnerability. Returns status code 304 if the vulnerability is already dismissed. Returns status code 403 if the authenticated user does not have permission to change the vulnerability status.

id
required
string

The ID of a vulnerability

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