GitLab API icon

GitLab API

Gitlab

Actions1062

Projects → getApiV4ProjectsIdMergeRequestsMergeRequestIidApprovalState

AI-generated

Summary

Retrieve the approval state of a specific merge request within a GitLab project using its project ID or URL-encoded path and the merge request's 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 to retrieve the approval state for.
  • baseUrl — Optional base URL of the GitLab instance, defaults to https://gitlab.com if not specified.
  • skipAuthentication — Optionally skip authentication when making the request (usually false).

Output shape

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

Returns the approval state information as defined by the GitLab API v4 endpoint /api/v4/projects/{id}/merge_requests/{merge_request_iid}/approval_state. Authentication credentials are required unless explicitly skipped.

Links

Discussion