GitLab API icon

GitLab API

Gitlab

Actions1062

Projects → postApiV4ProjectsIdMergeRequestsMergeRequestIidDraftNotes

AI-generated

Summary

Post a draft note on a specific merge request within a GitLab project by providing the project ID, merge request ID, and note content.

Inputs

  • id (required) — The ID of the GitLab project where the merge request exists.
  • merge_request_iid (required) — The internal ID of the merge request within the project.
  • postApiV4ProjectsIdMergeRequestsMergeRequestIidDraftNotes (required) — The request body containing the content of the draft note to be added to the merge request.

Output shape

a single record representing the newly created draft note on the merge request

The response shape matches the GitLab API representation of a draft note. Authentication is required unless Skip Authentication is enabled. The baseUrl defaults to https://gitlab.com but can be customized.

Links

Discussion