We are to use the REST API of bitbucket (non -cloud) to add a public key to an account.
I found this article which suggests you can do it
https://confluence.atlassian.com/bitbucket/rest-apis-222724129.html
but I can't get it to work
I can test with this
curl -u u:p http://server:7990/rest/api/1.0/admin/users
and it works
but i can't get this to work
curl -u u:p http://servername:7990/rest/api/1.0/admin/users/<<usrername>>/ssh-keys
That article is for Bitbucket Cloud - have a look at https://docs.atlassian.com/bitbucket-server/rest/4.1.0/bitbucket-ssh-rest.html instead.
Thanks for that. I will have a look.
It looks like you're new here. Sign in or register to get started.