GitLab API icon

GitLab API

Gitlab

Actions1062

Projects → getApiV4ProjectsIdMergeRequestsMergeRequestIidDraftNotesDraftNoteId

AI-generated

Summary

Retrieve a specific draft note from a merge request in a GitLab project by providing the project ID, merge request IID, and draft note ID.

Inputs

  • id (required) — The ID of the GitLab project from which to fetch the draft note.
  • merge_request_iid (required) — The internal ID (IID) of the merge request containing the draft note.
  • draft_note_id (required) — The ID of the specific draft note to retrieve.
  • skipAuthentication — Optionally skip authentication for this request; defaults to false.
  • baseUrl — The base URL of the GitLab instance; defaults to 'https://gitlab.com'.

Output shape

a JSON object representing the draft note details

Returns the draft note's content and metadata as a single JSON object. Requires authentication unless 'Skip Authentication' is set to true.

Examples

Example 1: Retrieve details of a draft note with ID 456 in merge request IID 12 of project with ID 'my-group/my-project'

Set 'id' to 'my-group/my-project', 'merge_request_iid' to 12, and 'draft_note_id' to 456; use GET method and default base URL.

Links

Discussion