Code of Conduct
What article on docs.github.com is affected?
All endpoints in https://docs.github.com/en/free-pro-team@latest/rest/apps/oauth-applications?apiVersion=2022-11-28
What part(s) of the article would you like to see updated?
In the whole page, the doc clearly states that you must use Basic Authentication for OAuth Authorizations endpoints.
However, the code samples use token authentication, which is NOT working.
For example, it should be fixed like below:
curl -L \
-X DELETE \
-H "Accept: application/vnd.github+json" \
- -H "Authorization: Bearer <YOUR-TOKEN>" \
+ --user "<YOUR_CLIENT_ID>:<YOUR_CLIENT_SECRET>" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/applications/Iv1.8a61f9b3a7aba766/grant \
-d '{"access_token":"e72e16c7e42f292c6912e7710c838347ae178b4a"}'
Additional information

Code of Conduct
What article on docs.github.com is affected?
All endpoints in https://docs.github.com/en/free-pro-team@latest/rest/apps/oauth-applications?apiVersion=2022-11-28
What part(s) of the article would you like to see updated?
In the whole page, the doc clearly states that you must use Basic Authentication for OAuth Authorizations endpoints.
However, the code samples use token authentication, which is NOT working.
For example, it should be fixed like below:
Additional information