GitLab API

GitlabTool

Actions1095

Projects → postApiV4ProjectsIdMergeRequestsMergeRequestIidUnapprove

AI-generated

Summary

Unapprove a specific merge request in a GitLab project by its project ID and merge request IID.

Inputs

  • id (required) — The ID of the GitLab project where the merge request exists.
  • merge_request_iid (required) — The internal ID (IID) of the merge request to unapprove.
  • skipAuthentication — Optionally skip authentication for this request, defaulting to false.
  • baseUrl — The base URL of the GitLab instance to send the request to, defaulting to https://gitlab.com.

Output shape

a single JSON response object relating to the unapproval action on the specified merge request

The operation returns the API response from the GitLab endpoint that unapproves the merge request; the response format and content follow the GitLab API specification. Authentication is required unless explicitly skipped.

Examples

Example 1: Unapprove a merge request in a GitLab project

Set 'id' to the project ID (integer), 'merge_request_iid' to the merge request number (integer), and optionally customize 'baseUrl' if using a self-managed GitLab instance.

Links

Discussion