-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Permission Denied from API #122
Comments
Is it possible you’re using a “project token” rather than a “user token”? |
Thank you! That seemed to be it. Will the user token expire after a while? |
No, but it seems we should probably at least make this error message better. |
As it stands the documented approach simply does not function. Some talk over here about using different syntax which includes https://discuss.circleci.com/t/api-to-trigger-a-new-build-by-project-preview-fails/24610 Seems nowhere is it documented that a |
Indeed this should be better documented! I'm so glad I found this thread though :D |
You're kidding me, it had been reported 2 years ago when I first encounted it. Must be no coders working at CircleCI. |
I am trying to use the endpoint specified here:
https://circleci.com/docs/api/v1-reference/#new-project-build
But get
"message" : "Permission denied"
error.
Not sure why it's denied as I have an API token in CircleCI to use. I also send data
{"branch": "staging"}
The text was updated successfully, but these errors were encountered: