How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

GitLab Merge request approvals API

Use this API to manage [merge request approvals](https://docs.gitlab.com/user/project/merge_requests/approvals/)and the group and project [approval settings](https://docs.gitlab.com/user/project/merge_requests/approvals/settings/)that govern them. All endpoints require authentication.Endpoints to approve, unapprove, reset approvals, and retrieve approval state are available on alltiers, including Free. All other endpoints require Premium or Ultimate, and each one shows its tier.> [!note]> The `merge_request_iid` and `id` path parameters must each be a single value.> Passing multiple space-separated values (for example, `451 454 458`) is not> supported and returns `400 Bad Request`. To act on multiple merge requests,> make one request per merge request IID.

GitLab Merge request approvals API is one of 189 APIs that GitLab publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.

This API exposes 16 JSON Schema definitions.

Tagged areas include Merge request approvals. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, authentication docs, an API reference, rate-limit docs, an AsyncAPI specification, and 16 JSON Schemas.

This API exposes 15 operations across 9 paths, and defines 21 schemas. It is described by OpenAPI 3.2.0, at version 19.6.

Requests are made against a single base URL, https://{hostname}.

15 operations 9 paths 21 schemas 1 DELETE6 GET4 POST4 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
19.6
Base URL
https://gitlab.com/api/v4
Authentication
HTTP Bearer, OAuth 2.0, API Key
Terms of Service
Resource Areas
1

Authentication & Security 3

GitLab Merge request approvals API declares 3 security schemes for authenticating requests. It accepts HTTP bearer tokens (http). It supports OAuth 2.0 (oauth2) using the authorizationCode flow, exposing 9 scopes. An API key is passed in the header as PRIVATE-TOKEN (apiKey). By default, every request must be authenticated.

Paths & Operations 15

Across 9 paths, the API surfaces 15 operations — 1 DELETE, 6 GET, 4 POST, 4 PUT. Each is listed below with its method, path, parameters, and response codes.

Merge request approvals 15

Use this API to manage merge request approvals and the group and project approval settings that govern them. All endpoints require authentication. Endpoints to approve, unapprove,…

GET
/api/v4/projects/{id}/merge_requests/{merge_request_iid}/approval_rules
List all approval rules for a merge request
getApiV4ProjectsIdMergeRequestsMergeRequestIidApprovalRules 4 params → 200404400
POST
/api/v4/projects/{id}/merge_requests/{merge_request_iid}/approval_rules
Create an approval rule for a merge request
postApiV4ProjectsIdMergeRequestsMergeRequestIidApprovalRules 2 params body → 201404400
GET
/api/v4/projects/{id}/merge_requests/{merge_request_iid}/approval_rules/{approval_rule_id}
Retrieve an approval rule for a specific merge request
getApiV4ProjectsIdMergeRequestsMergeRequestIidApprovalRulesApprovalRuleId 3 params → 200404400
PUT
/api/v4/projects/{id}/merge_requests/{merge_request_iid}/approval_rules/{approval_rule_id}
Update an approval rule for a merge request
putApiV4ProjectsIdMergeRequestsMergeRequestIidApprovalRulesApprovalRuleId 3 params body → 200404400
DELETE
/api/v4/projects/{id}/merge_requests/{merge_request_iid}/approval_rules/{approval_rule_id}
Delete an approval rule for a merge request
deleteApiV4ProjectsIdMergeRequestsMergeRequestIidApprovalRulesApprovalRuleId 3 params → 204404400
GET
/api/v4/projects/{id}/merge_request_approval_setting
Retrieve MR approval settings for a project
getApiV4ProjectsIdMergeRequestApprovalSetting 1 param → 200403404400
PUT
/api/v4/projects/{id}/merge_request_approval_setting
Update MR approval settings for a project
putApiV4ProjectsIdMergeRequestApprovalSetting 1 param body → 200400403404
GET
/api/v4/groups/{id}/merge_request_approval_setting
Retrieve MR approval settings for a group
getApiV4GroupsIdMergeRequestApprovalSetting 1 param → 200403404400
PUT
/api/v4/groups/{id}/merge_request_approval_setting
Update MR approval settings for a group
putApiV4GroupsIdMergeRequestApprovalSetting 1 param body → 200400403404
GET
/api/v4/projects/{id}/merge_requests/{merge_request_iid}/approvals
Retrieve approval state for a merge request
getApiV4ProjectsIdMergeRequestsMergeRequestIidApprovals 2 params → 200404400
POST
/api/v4/projects/{id}/merge_requests/{merge_request_iid}/approvalsdeprecated
Change approval-related configuration
postApiV4ProjectsIdMergeRequestsMergeRequestIidApprovals 2 params body → 201404400
POST
/api/v4/projects/{id}/merge_requests/{merge_request_iid}/approve
Approve merge request
postApiV4ProjectsIdMergeRequestsMergeRequestIidApprove 2 params body → 201404401400
POST
/api/v4/projects/{id}/merge_requests/{merge_request_iid}/unapprove
Unapprove a merge request
postApiV4ProjectsIdMergeRequestsMergeRequestIidUnapprove 2 params → 201404401400
PUT
/api/v4/projects/{id}/merge_requests/{merge_request_iid}/reset_approvals
Reset approvals for a merge request
putApiV4ProjectsIdMergeRequestsMergeRequestIidResetApprovals 2 params → 200401404400
GET
/api/v4/projects/{id}/merge_requests/{merge_request_iid}/approval_state
Retrieve approval details for a merge request
getApiV4ProjectsIdMergeRequestsMergeRequestIidApprovalState 2 params → 200404400

Schemas 21

The contract defines 21 schemas that model the data the API accepts and returns. The most detailed are APIEntitiesGroup (56 properties), APIEntitiesMergeRequestApprovals (24 properties), APIEntitiesApprovalState (24 properties), APIEntitiesMergeRequestApprovalStateRule (15 properties). Each schema is shown below with its type and property counts.

APIEntitiesApprovalRuleShort
object
3 properties
APIEntitiesMergeRequestApprovalRule
object
12 properties
APIEntitiesMergeRequestApprovals
object
24 properties
APIEntitiesApprovalState
object
24 properties
APIEntitiesSamlGroupLink
object
4 properties
APIEntitiesNamespaceRootStorageStatistics
object
12 properties
APIEntitiesMergeRequestApprovalRuleSourceRule
object
1 property
postApiV4ProjectsIdMergeRequestsMergeRequestIidApprovalsRequest
object
1 property 1 required
APIEntitiesUserBasic
object
10 properties
APIEntitiesMergeRequestApprovalStateRule
object
15 properties
APIEntitiesCustomAttribute
object
2 properties
APIEntitiesMergeRequestApprovalState
object
2 properties
APIEntitiesApprovals
object
2 properties
postApiV4ProjectsIdMergeRequestsMergeRequestIidApproveRequest
object
3 properties
putApiV4ProjectsIdMergeRequestApprovalSettingRequest
object
7 properties
putApiV4GroupsIdMergeRequestApprovalSettingRequest
object
7 properties
APIEntitiesMergeRequestApprovalSetting
object
7 properties
putApiV4ProjectsIdMergeRequestsMergeRequestIidApprovalRulesApprovalRuleIdRequest
object
6 properties
postApiV4ProjectsIdMergeRequestsMergeRequestIidApprovalRulesRequest
object
6 properties 2 required
APIEntitiesGroup
object
56 properties
APIEntitiesLdapGroupLink
object
5 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

gitlab-merge-request-approvals-api-openapi.yml Raw ↑

Other APIs GitLab publishes across the network.

GitLab Orbit gRPC API
GitLab GraphQL API
GitLab Applications API
GitLab Authorization API
GitLab Broadcast Messages API
GitLab Groups API
GitLab Metadata API
GitLab Project Webhooks API
GitLab Projects API
GitLab Tokens API
GitLab User Info API
GitLab Webhook Configuration API
Where this information came from

This is an independent, third-party profile of GitLab Merge request approvals API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.