GitLab API

GitlabTool

Actions1095

Projects → postApiV4ProjectsIdMergeRequestsMergeRequestIidDraftNotes

AI-generated

Summary

Create a new draft note on a specified merge request within a GitLab project by providing the project ID, merge request IID, and the draft note content.

Inputs

  • id (required) — The ID of the GitLab project where the merge request exists.
  • merge_request_iid (required) — The internal ID (IID) of the merge request to which the draft note will be added.
  • postApiV4ProjectsIdMergeRequestsMergeRequestIidDraftNotes (required) — The request body containing the draft note details, such as the content of the note.

Output shape

a single record representing the newly created draft note

The operation returns the created draft note object. Authentication via the GitLab API credentials is required unless skipping authentication is enabled.

Links

Discussion