[BUG] REST API updateRelease not working #24332
-
The github REST API for updating a release using a release-id isn’t working Example taken from here -
returns
Which is correct and indicates that the release id But then,
returns
|
Beta Was this translation helpful? Give feedback.
Replies: 7 comments
-
When you have my instructions let me know |
Beta Was this translation helpful? Give feedback.
-
I edited the original post to include instructions, please check |
Beta Was this translation helpful? Give feedback.
-
Are you passing your Authorization token in header while calling your request? If so check wether it has necessary scopes |
Beta Was this translation helpful? Give feedback.
-
I used the above. I entered my github password where required. Isn’t that enough? |
Beta Was this translation helpful? Give feedback.
-
Can you try creating a PAT token with the necessary scopes and check it. |
Beta Was this translation helpful? Give feedback.
-
@parithiban Thanks! That has finally got it working. In fact, I just discovered that the username-password method of authentication has been deprecated. Here - docs.github.comOther authentication methods - GitHub Docs//docs.github.com/en/free-pro-team@latest/rest/overview/other-authentication-methods |
Beta Was this translation helpful? Give feedback.
-
Hello, I Implemented this function to get releases. But zipball_url not working, I implement this for private repository. private function get_repository_info() {
Its works fine and return below response.
) Get this message when try to access zipball url. Can you help me to find out the issue? |
Beta Was this translation helpful? Give feedback.
Can you try creating a PAT token with the necessary scopes and check it.