GitLab API icon

GitLab API

Gitlab

Actions1062

Projects → putApiV4ProjectsIdMergeRequestsMergeRequestIidDraftNotesDraftNoteId

AI-generated

Summary

Update a specific draft note on a merge request within a project by providing the project ID, merge request IID, draft note ID, and the updated note data.

Inputs

  • id (required) — The ID of the project containing the merge request.
  • merge_request_iid (required) — The internal ID of the merge request containing the draft note.
  • draft_note_id (required) — The ID of the draft note to update.
  • putApiV4ProjectsIdMergeRequestsMergeRequestIidDraftNotesDraftNoteId (required) — The request body containing the updated content for the draft note.

Output shape

the updated draft note object as returned by the GitLab API

The operation returns the edited draft note. Inputs are required path parameters and a request body matching the GitLab API schema for editing a draft note. Authentication is required by default unless skipped.

Examples

Example 1: Updating content of a draft note for a merge request

Specify the project ID, merge request IID, and draft note ID, and provide the new content in the request body to update the note.

Links

Discussion