You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hai,
I'm trying to run the following curl to reset password for a user but getting the error with 400 Bad Request. Can anyone please let me know what am I missing in the curl command
Command: curl -k -u <admin>:<Password> -X PUT -H "Content-Type: application/json" "https://<Host:Port>/rest/api/1.0/admin/users/credentials?password=Password01&passwordConfirm=Password01&name=bob@example.com"
Error: {
"errors": [
{
"context": null,
"message": "No content to map to Object due to end of input",
"exceptionName": "java.io.EOFException"
}
]
}
Document Referred: https://docs.atlassian.com/bitbucket-server/rest/5.16.0/bitbucket-rest.html#idm8288251120
Thanks
Hi @sasanth,
This is untested, but something like this should work.
Basically we're passing JSON with the request.
curl -k -u <admin>:<Password> \
-H "Content-Type: application/json" \
-X POST \
-d '{"password": "Password01","passwordConfirm": "Password01","name": "bob@example.com"}' \
https://<Host:Port>/rest/api/1.0/admin/users/credentials
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.