Can't list columns through API

Hi, I’m a bit confused by this message. I’m getting “Must have admin rights to Repository”. I am the owner of the repository and project in question, and the token I am using has every checkbox checked (while debugging)

+ github_api https://api.github.com/projects/1002604/columns
+ curl https://api.github.com/projects/1002604/columns -H 'Authorization: token xxxx' -H 'Accept: application/vnd.github.inertia-preview+json'
{
  "message": "Must have admin rights to Repository.",
  "documentation_url": "https://developer.github.com/v3/projects/columns/#list-project-columns"
}

However, I can view the details for a given column with the same token:

+ curl https://api.github.com/projects/columns/9510223 -H 'Authorization: token xxxxx' -H 'Accept: application/vnd.github.inertia-preview+json'
{
  "url": "https://api.github.com/projects/columns/9510223",
...

:wave: @dogboydog: That message indicates that you don’t have admin rights to the project board with that id of value 1002604. As a next step, could you please double check the id of that project board by listing the repository projects? The response is a JSON array where each element represents a project board in the repository. Each element has an id value that you can verify against that id. If they don’t match up, I suggest making a new request with the updated id. Otherwise, I’d be curious to see the response (masking any sensitive or private information) so we can investigate further. :male_detective:

Hey this was totally my fault. I don’t even know where I got the project ID in the OP now. I thought I pasted the API url from the event payload in my workflow, but it doesn’t seem like that’s the case. I double checked the ID and mine is different and I’m able to list it. Long day I guess. Thank you!

1 Like