Rest 1.0 invite to group not working

Hi,

I'm trying to use the REST 1.0 API to invite someone to a group. It's a test account and I'm the admin for the team and all the groups. I'm following the limited instructions here (Issue an invitation to a group):

https://confluence.atlassian.com/bitbucket/invitations-resource-296911749.html

No matter what I try, I get a 404 with "No Group matches the given query." The documentation is unfortunately unclear.

  • Any chance I can get an example of a successful call using this endpoint?
  • The call says I can invite someone to multiple groups. I assume I do that by having a "groups" json key and an array of strings as the value  in the body as JSON, which doesn't work. And if that's how we're supposed to specify the groups, then what is the group_slug in the URL for?

Thanks

1 answer

I figured it out:

 

GET https://api.bitbucket.org/1.0/users/{accountname}/invitations/{email_address}/{group_owner}/{group_slug} 

 

The {group_owner} I had to pass in was the exact same thing as the {accountname}. I had assumed that the group owner was my own user account which I had used to create the group, but it seems that it is the team account instead.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

22,491 views 26 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you