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

This widget could not be displayed.

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
Community showcase
Published Aug 21, 2018 in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

1,310 views 8 11
Read article

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