Authorization Error in GitHub API Endpoint for Organization Migrations #123111
Unanswered
TesterForDev
asked this question in
API and Webhooks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Question
Body
I use Authorized OAuth App token
After 07.05.2024 , I send a request to the following endpoint: https://api.github.com/orgs/ORG/migrations (Reference: GitHub API Documentation). Previously, this process functioned correctly; however, GitHub API now returns the error: "Authorization failed. Please visit GitHub Migrations Documentation for more information."
My request:
curl --location 'https://api.github.com/orgs/TestForBackupL/migrations'
--header 'Accept: application/vnd.github+json'
--header 'X-GitHub-Api-Version: 2022-11-28'
--header 'Content-Type: application/json'
--header 'Authorization: Bearer ******'
--data '{
"repositories": [
"want-to"
],
"lock_repositories": false,
"exclude_attachments": false,
"exclude": []
}'
The token was obtained using Authorizing OAuth apps.
Documentation Review:
Reviewed GitHub API documentation but found no relevant changes that could explain the authorization failure.
Tested other GitHub API endpoints for comparison:
https://api.github.com/orgs/org/repos
https://api.github.com/user
These endpoints are operational without issues - works correct.
What could be the problem?
Beta Was this translation helpful? Give feedback.
All reactions