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,464,354
Community Members
 
Community Events
176
Community Groups

BitBucket API

Edited

Hello. I'm trying to add user into mine bitbucket group, using Atlassian API. For doing that, I haven't found any endpoints in a current official documentation - https://developer.atlassian.com/cloud/bitbucket/rest/api-group-users/#api-users-username-members-get. After investigating that issue, I have found an 1.0 version endpoints. For several endpoints (get all users from group and etc.) it works, but for the 

it doesn't work. Returns 404 code
Please, help me with that problem. Is there any others endpoints to cope with that problem?

2 answers

1 accepted

0 votes
Answer accepted
Pramodh M Community Leader Feb 15, 2022

Hi @Roman Sulyba 

I just tried with the API and its working

curl --user 'your-username:token' \
--request PUT https://api.bitbucket.org/1.0/groups/{workspace-id}/{group-name}/members/{username}/ --data '{}'

Pass the parameter workspace-id, groupname, and username in the URL

Suppose if you need to the user with george the API Call goes like this

curl --user 'your-username:token' \
--request PUT https://api.bitbucket.org/1.0/groups/{workspace-id}/{group-name}/members/george/ --data '{}'

It doesn't take GUID, go with a username

Let me know if you have any queries

Thanks,
Pramodh

Pramodh M Community Leader Feb 15, 2022

Hi @Roman Sulyba 

Were you able to get this working?

Hello @Pramodh M 

Yes I was. Thank you very much.

Pramodh M Community Leader Feb 16, 2022

@Roman Sulyba 

Please mark the answer as accepted 🙂

@Pramodh M 

Thank you for a quick response. I have read an answering in that URL and found an endpoint which I have used previously. Unfortunately it returns me 404 status code. But another endpoint (GET https://api.bitbucket.org/1.0/groups/{workspace_id}/{group_slug}/members) works ideally)image.png

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events