GitLab API

GitlabTool

Actions1095

Projects → postApiV4ProjectsIdMergeRequestsMergeRequestIidApprovals

AI-generated

Summary

Send a POST request to approve a specific merge request in a GitLab project.

Inputs

  • id (required) — The ID or URL-encoded path of the project containing the merge request.
  • merge_request_iid (required) — The internal ID (IID) of the merge request to approve.
  • postApiV4ProjectsIdMergeRequestsMergeRequestIidApprovals (required) — The request body according to the GitLab API schema for approving merge request approvals, containing approval details.
  • skipAuthentication — Optionally skip authentication for the request (default is false).
  • baseUrl — The base URL of the GitLab instance to target (default is https://gitlab.com).

Output shape

a single JSON object representing the approval response returned by the GitLab API after posting the approval to the merge request.

The response reflects the approved state of the merge request's approvals. The node requires authentication via specified credentials unless 'Skip Authentication' is enabled. The POST method is fixed for this operation.

Links

Discussion