Hello all, I'm trying to run a simple GET request through the JIRA API. However, every time I run the code, I am getting a 401 Unauthorized error, despite using my admin username password.
What am I missing in my snippet in order to give authorization?
Here is the snipped of what I'm using:curl -D- -u user:userPassword -X GET -H "Content-Type: application/json" "http://localhost:8080/rest/api/2/user?username=selectedUser
Everything looks good. There is an extra double quotes before your url but I am guessing that is a typo.
Make sure your username and password is correct. Can't think of any other issues.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Join us to learn how your team can stay fully engaged in meetings without worrying about writing everything down. Dive into Loom's newest feature, Loom AI for meetings, which automatically takes notes and tracks action items.
Register today!Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.