GitLab API

GitlabTool

Actions1095

Projects → putApiV4ProjectsIdMergeRequestsMergeRequestIidDraftNotesDraftNoteId

AI-generated

Summary

Update an existing draft note on a specific merge request within a project on GitLab.

Inputs

  • id (required) — The ID of the project in GitLab where the merge request exists.
  • merge_request_iid (required) — The internal ID of the merge request within the project.
  • draft_note_id (required) — The ID of the draft note to be updated.
  • putApiV4ProjectsIdMergeRequestsMergeRequestIidDraftNotesDraftNoteId (required) — Request body containing the updated details of the draft note.
  • baseUrl — Optional base URL of the GitLab instance; defaults to https://gitlab.com.
  • skipAuthentication — Whether to skip authentication; defaults to false.

Output shape

a single updated draft note object as returned by the GitLab API

The response includes the updated draft note data; authentication is required unless 'skipAuthentication' is set to true.

Examples

Example 1: Update draft note content

Provide the project ID, merge request IID, draft note ID, and updated draft note content in the request body.

Links

Discussion