Access denied trying to update a workflow via API #24303
-
I created a public repository within my personal account, created a PAT w/ the workflow permissions checked, but am unable to disable the workflow via the API as I receive a message stating that I must have admin rights to the repository. I believe the PAT has the correct permissions so I’m unsure as to why this isn’t working. Here is the command I am attempting to use (based on the documentation):
I can retrieve information about the workflow without any issues so I believe that I have the correct URL and formatting, etc. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I have figured this out. Rather than using the |
Beta Was this translation helpful? Give feedback.
-
christronyxyocum:
For posterity, here’s a friendly link to those docs for sending an OAuth 2 token in the header. ✌️ |
Beta Was this translation helpful? Give feedback.
I have figured this out. Rather than using the
username:token
format like they show repeatedly in their documentation, you must use the-H "Authorization: bearer TOKEN"
header with thecurl
command.