Update a draft note
Updates a draft note for a specified merge request.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”The ID of a project.
The ID of a merge request.
The ID of a draft note
Request Body
Section titled “ Request Body ”object
The content of a note.
Position when creating a note
object
Base commit SHA in the source branch
SHA referencing commit in target branch
SHA referencing HEAD of this merge request
Type of the position reference
File path after change
Line number after change
File path before change
Line number before change
Width of the image
Height of the image
X coordinate in the image
Y coordinate in the image
Line range for a multi-line note
object
Start line for a multi-line note
object
Start line code for multi-line note
Start line type for multi-line note
Start old_line line number
Start new_line line number
End line for a multi-line note
object
End line code for multi-line note
End line type for multi-line note
End old_line line number
End new_line line number
Responses
Section titled “ Responses ”OK
object
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