GitLab API
/api/v4/projects/{id}/managed_licenses* endpoint removal
Stopped workingSubscribe to GitLab APIShare
On May 22, 2023, GitLab removed the /api/v4/projects/{id}/managed_licenses* endpoints. Calls to these paths now fail. This removal followed an earlier deprecation announcing that the API was scheduled for removal in GitLab 16.0.
Calls it hits
/api/v4/projects/{id}/managed_licenses*
What to use instead of these calls
Enforce license approvals with a License Approval policy (security policies) instead. No REST endpoint replaces it, meaning the migration requires moving approval workflows rather than updating an identifier.
No REST endpoint replaces it: license approvals move to License Approval policies.
In GitLab API's words
The Managed Licenses API is now deprecated and is scheduled for removal in GitLab 16.0.
Facts
- API
- GitLab API
gitlab.com - Kind
- Endpoint removal
- Announced
- February 22, 2023
- Takes effect
- May 22, 2023
- Calls after that day
- Fail
- Source
- Announcement
- Last updated
- Verified
- , against GitLab API's own pages
Questions
When does this change take effect?
Calls to /api/v4/projects/{id}/managed_licenses* on GitLab API stopped working on May 22, 2023.
What happens to calls after May 22, 2023?
They have failed since May 22, 2023.
How do I find the calls this hits in my code?
Okapi reads your repository, finds the calls this change hits and opens a pull request with the fix. It never commits to your branches: every change comes as a pull request you review.
More from GitLab API 10
-
GET /api/v4/groups/{id}/dora/metricsParameter removal Stopped working -
GET /api/v4/projects/{id}/dora/metricsParameter removal Stopped working -
POST /api/v4/ci/lintEndpoint removal Stopped working -
POST /api/v4/projects/{id}/merge_requests/{id}/approvalsEndpoint removal Stopped working -
No date
GET /api/v4/namespaces/:namespace_id/subscription_add_on_purchase/:idEndpoint removal Deprecated, no date -
No date
GET /api/v4/projects/{id}/merge_requests/{id}/changesEndpoint removal Deprecated, no date -
No date
PATCH /api/v4/namespaces/:previous_namespace_id/minutes/move/:target_namespace_idEndpoint removal Deprecated, no date -
No date
POST /api/v4/namespaces/:id/gitlab_subscriptionEndpoint removal Deprecated, no date -
No date
POST /api/v4/namespaces/:namespace_id/minutesEndpoint removal Deprecated, no date -
No date
POST /api/v4/namespaces/:namespace_id/subscription_add_on_purchase/:idEndpoint removal Deprecated, no date
You fixed this one by hand.
Okapi opens the pull request with the fix before the next breaking change reaches your code.