I'm making a GitHub app, and I'm trying to create a repo according to this documentation
When I make a GET request to that URL, it works and I get the user's repos, but making a post request like this:
curl --request POST \
--url https://api.github.com/user/repos \
--header 'authorization: token [user_access_token]' \
--data '{"name": "test"}'
Returns this
{
"message": "Resource not accessible by integration",
"documentation_url": "https://docs.github.com/rest/reference/repos#create-a-repository-for-the-authenticated-user"
}