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

0 votes

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 Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

627 views 0 4
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot