GitLab · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for GitLab REST Draft notes API

8 actions 8 updates phrasing extends openapi/gitlab-draft-notes-api-openapi.yml
Generated by API Evangelist Written by API Evangelist tooling for GitLab's API. It is a proposal applied on top of the contract, not a document GitLab publishes.
View Overlay File View on GitHub Overlay Specification

What the actions change

x-apievangelist-phrasing

Targets 8

$.info
$.paths['/api/v4/projects/{id}/merge_requests/{merge_request_iid}/draft_notes'].get
$.paths['/api/v4/projects/{id}/merge_requests/{merge_request_iid}/draft_notes'].post
$.paths['/api/v4/projects/{id}/merge_requests/{merge_request_iid}/draft_notes/{draft_note_id}'].get
$.paths['/api/v4/projects/{id}/merge_requests/{merge_request_iid}/draft_notes/{draft_note_id}'].put
$.paths['/api/v4/projects/{id}/merge_requests/{merge_request_iid}/draft_notes/{draft_note_id}'].delete
$.paths['/api/v4/projects/{id}/merge_requests/{merge_request_iid}/draft_notes/{draft_note_id}/publish'].put
$.paths['/api/v4/projects/{id}/merge_requests/{merge_request_iid}/draft_notes/bulk_publish'].post

OpenAPI Overlay

Raw ↑
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
  title: API Evangelist conversational phrasing for GitLab REST Draft notes API
  version: 1.0.0
extends: openapi/gitlab-draft-notes-api-openapi.yml
actions:
- target: $.info
  update:
    x-apievangelist-phrasing:
      method: generated
      generated: '2026-11-23'
      generator: build-phrasing.py
      label: Generated by API Evangelist
      operations: 7
- target: $.paths['/api/v4/projects/{id}/merge_requests/{merge_request_iid}/draft_notes'].get
  update:
    x-apievangelist-phrasing:
      intent: List a merge request's draft notes
      effect: read
      questions:
      - Which draft notes have I left on a merge request?
      - Can I see all my pending draft comments on a merge request?
      instructions:
      - text: List draft notes on merge request {merge_request_iid} in project {id}.
        slots:
          merge_request_iid: path.merge_request_iid
          id: path.id
      - text: Show all my draft comments on MR {merge_request_iid} in {id}.
        slots:
          merge_request_iid: path.merge_request_iid
          id: path.id
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/merge_requests/{merge_request_iid}/draft_notes'].post
  update:
    x-apievangelist-phrasing:
      intent: Create a draft note on a merge request
      effect: write
      questions:
      - How do I leave a draft comment on a merge request?
      - Can I attach a draft note to a specific commit in a merge request?
      instructions:
      - text: Create draft note {note} on merge request {merge_request_iid} in project {id}.
        slots:
          note: requestBody.note
          merge_request_iid: path.merge_request_iid
          id: path.id
      - text: Add a draft comment {note} to commit {commit_id} on MR {merge_request_iid} in {id}.
        slots:
          note: requestBody.note
          commit_id: requestBody.commit_id
          merge_request_iid: path.merge_request_iid
          id: path.id
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/merge_requests/{merge_request_iid}/draft_notes/{draft_note_id}'].get
  update:
    x-apievangelist-phrasing:
      intent: Retrieve a draft note
      effect: read
      questions:
      - What does a specific draft note on my merge request say?
      - Can I fetch one draft note by its ID?
      instructions:
      - text: Get draft note {draft_note_id} on merge request {merge_request_iid} in project {id}.
        slots:
          draft_note_id: path.draft_note_id
          merge_request_iid: path.merge_request_iid
          id: path.id
      - text: Show the content of draft note {draft_note_id} on MR {merge_request_iid} in {id}.
        slots:
          draft_note_id: path.draft_note_id
          merge_request_iid: path.merge_request_iid
          id: path.id
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/merge_requests/{merge_request_iid}/draft_notes/{draft_note_id}'].put
  update:
    x-apievangelist-phrasing:
      intent: Update a draft note
      effect: write
      questions:
      - Can I edit a draft note I already wrote on a merge request?
      - How do I change the text of a pending draft comment?
      instructions:
      - text: Update draft note {draft_note_id} on merge request {merge_request_iid} in project {id} to {note}.
        slots:
          draft_note_id: path.draft_note_id
          merge_request_iid: path.merge_request_iid
          id: path.id
          note: requestBody.note
      - text: Change the text of draft note {draft_note_id} on MR {merge_request_iid} in {id} to {note}.
        slots:
          draft_note_id: path.draft_note_id
          merge_request_iid: path.merge_request_iid
          id: path.id
          note: requestBody.note
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/merge_requests/{merge_request_iid}/draft_notes/{draft_note_id}'].delete
  update:
    x-apievangelist-phrasing:
      intent: Delete a draft note
      effect: destructive
      questions:
      - How do I remove a draft note I left on a merge request?
      - Can I delete a pending draft comment before publishing it?
      instructions:
      - text: Delete draft note {draft_note_id} from merge request {merge_request_iid} in project {id}.
        slots:
          draft_note_id: path.draft_note_id
          merge_request_iid: path.merge_request_iid
          id: path.id
      - text: Remove my draft comment {draft_note_id} on MR {merge_request_iid} in {id}.
        slots:
          draft_note_id: path.draft_note_id
          merge_request_iid: path.merge_request_iid
          id: path.id
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/merge_requests/{merge_request_iid}/draft_notes/{draft_note_id}/publish'].put
  update:
    x-apievangelist-phrasing:
      intent: Publish a draft note
      effect: write
      questions:
      - How do I turn a draft note into a real comment on a merge request?
      - Can I publish one draft comment so the author sees it?
      instructions:
      - text: Publish draft note {draft_note_id} on merge request {merge_request_iid} in project {id}.
        slots:
          draft_note_id: path.draft_note_id
          merge_request_iid: path.merge_request_iid
          id: path.id
      - text: Post draft comment {draft_note_id} on MR {merge_request_iid} in {id} as a real comment.
        slots:
          draft_note_id: path.draft_note_id
          merge_request_iid: path.merge_request_iid
          id: path.id
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/merge_requests/{merge_request_iid}/draft_notes/bulk_publish'].post
  update:
    x-apievangelist-phrasing:
      intent: Publish all my pending draft notes
      effect: write
      questions:
      - How do I publish every draft note I left on a merge request at once?
      - Can I add a summary note when publishing all my pending comments?
      instructions:
      - text: Publish all my pending draft notes on merge request {merge_request_iid} in project {id}.
        slots:
          merge_request_iid: path.merge_request_iid
          id: path.id
      - text: Publish every draft comment on MR {merge_request_iid} in {id} and add {note} as a summary note.
        slots:
          merge_request_iid: path.merge_request_iid
          id: path.id
          note: requestBody.note
      method: generated
      generated: '2026-11-23'

Work with this as data

Every overlay here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for openapi overlays

4 MCP tools reach this
  • find_overlaysBrowse and filter every overlay in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This overlay
curl "https://apis.io/api/v1/overlays/gitlab-draft-notes-api-phrasing-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.