GitLab API

GitlabTool

Actions1095

Projects → getApiV4ProjectsIdMergeRequestsMergeRequestIidApprovalState

AI-generated

Summary

Retrieve the approval state of a specific merge request within a GitLab project by project ID and merge request IID.

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 whose approval state is to be fetched.
  • skipAuthentication — Set to true to perform the request without authentication (default is false).
  • baseUrl — Base URL of the GitLab instance, defaults to https://gitlab.com if unspecified.
  • method — HTTP method to use, must be GET for this operation (default is GET).

Output shape

a single JSON object representing the approval state of the specified merge request

The output reflects the approval status details per the GitLab API response for the GET /projects/{id}/merge_requests/{merge_request_iid}/approval_state endpoint; authentication is applied unless explicitly skipped.

Links

Discussion