Since bitbucket no longer supported the use of username. We must instead use User uuid for accessing the bitbucket api's.
Depreciated or Earlier
https://api.bitbucket.com/2.0/users/udayRatan
Latest
https://api.bitbucket.com/2.0/users/558050:c0b72ad0-1cb5-4018-9cdc-0cde8492c443
You can retrieve a list of all users that have access to a certain workspace (that you are an admin of) and the UUID for each one using this endpoint: https://developer.atlassian.com/bitbucket/api/2/reference/resource/workspaces/%7Bworkspace%7D/members.
To access your Personal settings in Bitbucket Cloud, click your profile avatar and select Personal settings from the profile menu. Click the Atlassian account link under your name to open the settings for your Atlassian account.
Visit your repository on the Bitbucket website. On the “Overview” page, on the right side, click “Invite users to this repo”. If your friend register in step 1, enter his user name, otherwise just enter the email and he will get a mail with a link to register.
Remote link can be found on top right side of the Source screen in your repository(https://bitbucket.org/<teamName_or_username>/<repo-name>/src). If you are using latest version of bitbucket cloud, there should be Clone button on right top.
You can make a GET request for a repository that you own and see your UUID listed under the owner
attribute:
curl https://api.bitbucket.org/2.0/repositories/1team/moxie
Or you could possibly make a GET request for all team members of a team you're a part of and see their UUID's there
curl https://api.bitbucket.org/2.0/teams/1team/members
Info taken from https://developer.atlassian.com/bitbucket/api/2/reference/meta/uri-uuid#repo-obj
I can't believe it could be this hard to get my own UUID. The way i fixed it was to create a public repo and then run this curl command
curl https://api.bitbucket.org/2.0/repositories/<bitbucketusername>/testrepo
the ouput contained my UUID. I then obviously deleted the unsafe public repo.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With