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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.