Skip to content

List all merge request draft notes

GET
/api/v4/projects/{id}/merge_requests/{merge_request_iid}/draft_notes

Lists all merge request draft notes.

id
required
string

The ID of a project

merge_request_iid
required
integer

The ID of a merge request

OK

Media type application/json
object
id
integer format: int64
author_id
integer format: int64
merge_request_id
integer format: int64
resolve_discussion
boolean
discussion_id
string
note
string
commit_id
string
line_code
string
position
object
Example
{
"id": 2,
"author_id": 4,
"merge_request_id": 52,
"resolve_discussion": true,
"discussion_id": "6a9c1750b37d513a43987b574953fceb50b03ce7",
"note": "This is a note",
"commit_id": "6104942438c14ec7bd21c6cd5bd995272b3faff6",
"line_code": "1c497fbb3a46b78edf0_2_4",
"position": {
"base_sha": "aa149113",
"start_sha": "b3a0a8c4",
"head_sha": "be3020c7",
"old_path": "example.md",
"new_path": "example.md",
"position_type": "text",
"old_line": 2,
"new_line": 4,
"line_range": {
"start": {
"line_code": "1c497fbb3a46b78edf04cc2a2fa33f67e3ffbe2a_2_4",
"type": null,
"old_line": 2,
"new_line": 4
},
"end": {
"line_code": "1c497fbb3a46b78edf04cc2a2fa33f67e3ffbe2a_2_4",
"type": null,
"old_line": 2,
"new_line": 4
}
}
}
}

Bad Request

Unauthorized

Not found