Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Rest 1.0 invite to group not working

Abes Dabir October 18, 2017

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
Abes Dabir October 20, 2017

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
TAGS
AUG Leaders

Atlassian Community Events