GitLab API

GitlabTool

Actions1095

Projects → getApiV4ProjectsIdMergeRequestsMergeRequestIidDraftNotesDraftNoteId

AI-generated

Summary

Retrieve a specific draft note by its ID from a merge request within a GitLab project using the GitLab API v4.

Inputs

  • id (required) — The ID of the GitLab project containing the merge request.
  • 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 retrieve from the merge request.
  • skipAuthentication — Optionally skip authentication for this request (default is false).
  • baseUrl — The base URL of the GitLab instance (default is https://gitlab.com).

Output shape

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

The operation uses an HTTP GET method on the endpoint /api/v4/projects/{id}/merge_requests/{merge_request_iid}/draft_notes/{draft_note_id}. Authentication is required unless explicitly skipped. The output includes details of the requested draft note and will error if the IDs are invalid or the note does not exist.

Examples

Example 1: Retrieve a draft note from a merge request

Set project ID, merge request IID, and draft note ID in path parameters; use GitLab API credentials; default base URL https://gitlab.com.

Links

Discussion