Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,458,036
Community Members
 
Community Events
176
Community Groups

Create workspace ssh key using the api

Edited

Can that be done? I didn't find anything related on the documentation for workspaces, only for repositories.

edit: I found this unanswered question from 2021 with the same problem: https://community.atlassian.com/t5/Bitbucket-questions/How-can-I-use-the-Bitbucket-API-to-add-an-SSH-key-to-a-Workspace/qaq-p/1836286

1 answer

1 accepted

0 votes
Answer accepted

Hi Arthur,

This is possible using the endpoint for adding an SSH key to users:

{selected_user} in the URL should be the UUID of the workspace (enclosed in curly brackets).

You may need to URL-encode the curly brackets, replace { with %7B and } with %7D

You can get the UUID of the workspace using the following endpoint:

Please feel free to let me know if this works for you and if you need anything further.

Kind regards,
Theodora

Yes, that helps actually, thank you!
I had to create an appassword for an user inside the workspace but it was enough authentication to add the key to the workspace.

Ps: I think the documentation on this should be updated.

Hi Arthur,

That's good to hear, thank you for the update!

I will talk with my team regarding updating the documentation.

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events