GitLab API icon

GitLab API

Gitlab

Actions1062

Projects → putApiV4ProjectsIdMergeRequestsMergeRequestIidDraftNotesDraftNoteIdPublish

AI-generated

Summary

Publish a draft note on a specific merge request within a GitLab project, converting the draft into a published comment.

Inputs

  • id (required) — The ID of the GitLab project containing the merge request.
  • merge_request_iid (required) — The internal ID of the merge request in the project where the draft note exists.
  • draft_note_id (required) — The ID of the draft note to be published as a comment.

Output shape

A single JSON object representing the published note corresponding to the previously drafted comment in the merge request.

Requires authentication via the configured GitLab API credentials unless 'Skip Authentication' is enabled. The operation uses the HTTP PUT method to the endpoint /api/v4/projects/{id}/merge_requests/{merge_request_iid}/draft_notes/{draft_note_id}/publish.

Links

Discussion