GitHub REST API
X-GitHub-Api-Version 2022-11-28 version retirement
Stops workingSubscribe to GitHub REST APIShare
On March 10, 2028, GitHub will retire the API version specified by the header x-github-api-version: 2022-11-28. Calls sending this version will fail after that date. Instead of processing the requests, GitHub REST API will return a 410 Gone response.
Calls it hits
header x-github-api-version: 2022-11-28
What to use instead of these calls
Update requests to send X-GitHub-Api-Version: 2026-03-10 instead. Moving to this version requires making the updates described in its breaking changes list.
In GitHub REST API's words
API version: 2022-11-28; End of support date: March 10, 2028. Requests that specify a closing down API version receive a 410 Gone response.
Facts
- API
- GitHub REST API
api.github.com - Kind
- Version retirement
- Takes effect
- March 10, 2028
- Calls after that day
- Fail
- Source
- Lifecycle page
- Last updated
- Verified
- , against GitHub REST API's own pages
Questions
When does this change take effect?
Calls to header x-github-api-version: 2022-11-28 on GitHub REST API stop working on March 10, 2028.
What happens to calls after March 10, 2028?
They fail from that day.
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
-
PATCH /orgs/{id}Parameter removal Stopped working -
PATCH /orgs/{id}Parameter removal Stopped working -
PATCH /orgs/{id}Parameter removal Stopped working -
PATCH /orgs/{id}Parameter removal Stopped working -
PATCH /orgs/{id}Parameter removal Stopped working -
PATCH /orgs/{id}Parameter removal Stopped working -
GET /assignments/*Endpoint removal Stopped working -
GET /classrooms*Endpoint removal Stopped working -
GET /repos/{id}/{id}/dependency-graph/sbomEndpoint removal Stops workingin 7 days -
no x-github-api-version headerVersion retirement Redirectsin 490 days
Is your code calling this?
Okapi finds the calls this change hits in your repo and opens the pull request with the fix before March 10, 2028.