GitLab API icon

GitLab API

Gitlab

Actions1062

Merge_requests → getApiV4ProjectsIdMergeRequestsMergeRequestIidRawDiffs

AI-generated

Summary

Retrieve the raw diff output of a specific merge request from a GitLab project.

Inputs

  • Id (required) — The ID or URL-encoded path of the GitLab project containing the merge request.
  • Merge_request_iid (required) — The internal ID (IID) of the merge request within the project.
  • Skip Authentication — Boolean flag to skip authentication; defaults to false, meaning authentication is used.
  • Authentication — Authentication method, defaulting to 'gitlabApi' credential; hidden if skip authentication is true.
  • Method — HTTP method to use for the request; defaults to GET.
  • BaseUrl — Base URL of the GitLab instance; defaults to 'https://gitlab.com'.

Output shape

a raw text response containing the unified diff format output of the merge request's changes

The response is the raw diff data as a textual payload, not a structured JSON object. No pagination or envelope wrapping applies.

Examples

Example 1: Retrieve raw diffs for merge request IID 42 in project 'my-group/my-project'

Set 'Id' to 'my-group/my-project' and 'Merge_request_iid' to '42'. Ensure authentication is configured unless skipped. Execute operation to obtain raw diff output as text.

Links

Discussion