Skip to content

Delete a vulnerability note

DELETE
/api/v4/projects/{id}/vulnerabilities/{noteable_id}/notes/{note_id}

Deletes a specified note from a vulnerability.

id
required
string

The ID of a project

noteable_id
required
integer

The ID of the noteable

note_id
required
integer

The ID of a note

No Content

Media type application/json
object
id
integer format: int64
type
string
body
string
author
object
id
integer format: int64
username
string
public_email
string
name
string
state
string
locked
boolean
avatar_url
string
avatar_path
string
custom_attributes
Array<object>
object
key
string
value
string
web_url
string
created_at
string format: date-time
updated_at
string format: date-time
system
boolean
noteable_id
integer format: int64
noteable_type
string
project_id
integer format: int64
commit_id
string
position
object
resolvable
boolean
resolved
boolean
resolved_by
object
id
integer format: int64
username
string
public_email
string
name
string
state
string
locked
boolean
avatar_url
string
avatar_path
string
custom_attributes
Array<object>
object
key
string
value
string
web_url
string
resolved_at
string format: date-time
suggestions
object
id
integer format: int64
from_line
integer
to_line
integer
appliable
boolean
applied
boolean
from_content
string
to_content
string
confidential
boolean
internal
boolean
imported
boolean
imported_from
string
noteable_iid
integer
commands_changes
object
Example
{
"id": 1,
"type": "DiscussionNote",
"body": "Note body.",
"author": {
"id": 1,
"username": "admin",
"public_email": "john@example.com",
"name": "Administrator",
"state": "active",
"avatar_url": "https://gravatar.com/avatar/1",
"avatar_path": "/user/avatar/28/The-Big-Lebowski-400-400.png",
"custom_attributes": [
{
"key": "foo",
"value": "bar"
}
],
"web_url": "https://gitlab.example.com/root"
},
"created_at": "2022-01-31T15:10:44.988Z",
"updated_at": "2022-01-31T15:10:44.988Z",
"system": false,
"noteable_id": 1,
"noteable_type": "Issue",
"project_id": 1,
"commit_id": "7b09ce7e6f80347baf0316c8c94cdba9a0a7e91d",
"resolvable": false,
"resolved": false,
"resolved_by": {
"id": 1,
"username": "admin",
"public_email": "john@example.com",
"name": "Administrator",
"state": "active",
"avatar_url": "https://gravatar.com/avatar/1",
"avatar_path": "/user/avatar/28/The-Big-Lebowski-400-400.png",
"custom_attributes": [
{
"key": "foo",
"value": "bar"
}
],
"web_url": "https://gitlab.example.com/root"
},
"resolved_at": "2022-01-31T15:10:44.988Z",
"suggestions": {
"id": 1,
"from_line": 1,
"to_line": 1,
"appliable": true,
"applied": false,
"from_content": "Original content\n",
"to_content": "New content\n"
},
"confidential": false,
"internal": false,
"imported": false,
"imported_from": "github",
"noteable_iid": 1
}

Bad Request

Not Found