GitHub REST API
/repos/{id}/{id}/import* endpoint removal
Stopped workingSubscribe to GitHub REST APIShare
Calls to /repos/{id}/{id}/import* on GitHub REST API stopped working on April 12, 2024.
Calls it hits
/repos/{id}/{id}/import*
What to use instead of these calls
Import with GitHub Importer (https://github.com/new/import) or one of the alternatives on GitHub Docs' "Programmatically importing repositories" page.
No REST replacement: imports move to the GitHub Importer UI, GitHub Enterprise Importer or a scripted git mirror push.
In GitHub REST API's words
From 00:00 UTC on April 12, 2024, these endpoints will return an error.
Facts
- API
- GitHub REST API
api.github.com - Kind
- Endpoint removal
- Announced
- October 12, 2023
- Takes effect
- April 12, 2024
- Calls after that day
- Fail
- Source
- Announcement
- Last updated
- Verified
- , against GitHub REST API's own pages
Questions
When does this change take effect?
Calls to /repos/{id}/{id}/import* on GitHub REST API stopped working on April 12, 2024.
What happens to calls after April 12, 2024?
They have failed since April 12, 2024.
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 GitHub REST API 10
-
GET /search/codeParameter removal Stopped working -
/repos/{id}/{id}/tags/protection*Endpoint removal Stopped working -
/orgs/{id}/projectsEndpoint removal Stopped working -
/orgs/{id}/teams/{id}/projects*Endpoint removal Stopped working -
/projects/*Endpoint removal Stopped working -
/repos/{id}/{id}/projectsEndpoint removal Stopped working -
/teams/{id}/projects*Endpoint removal Stopped working -
GET /users/{id}/projectsEndpoint removal Stopped working -
POST /user/projectsEndpoint removal Stopped working -
GET /enterprises/{id}/settings/billing/actionsEndpoint removal Stopped working
You fixed this one by hand.
Okapi opens the pull request with the fix before the next breaking change reaches your code.