Okapi Okapi

GitLab API · Endpoint removal

POST /api/v4/projects/{}/merge_requests/{}/approvals stops working

Stopped working

Calls to POST /api/v4/projects/{}/merge_requests/{}/approvals on GitLab API stopped working on May 22, 2023.

What to use instead of these calls

Create or update merge request approval rules with /api/v4/projects/{id}/merge_requests/{iid}/approval_rules.

Calls it hits

  • POST /api/v4/projects/{}/merge_requests/{}/approvals

To change the approvals required for a merge request, you should no longer use the `/approvals` API endpoint, which was deprecated in GitLab 14.0.

GitLab API, Announcement

Facts

API
GitLab API gitlab.com
Kind
Endpoint removal
Announced
June 22, 2021
Takes effect
May 22, 2023
Calls after that day
Fail
Source
Announcement
Last updated

More from GitLab API

Know before your API calls break.

Okapi finds the calls a breaking change hits in your code and opens the pull request that fixes them.

Add to GitHub