How to use Github API for Enterprise

Viewed 17

I want to use Github API to create , update, and delete a file in a repository https://docs.github.com/en/enterprise-server@3.4/rest/repos/contents API Link:- PUT request [https://{hostname}/api/v3/respos/{user}/{repo-name}/contents/{path}]

I am adding these headers :-

Accept : application/vnd.github+json,
Authorization : Bearer [Token]

But I am getting this error :-

Bad credentials
0 Answers
Related