Rest 1.0 invite to group not working


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):

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?


1 answer

I figured it out:




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 Mar 14, 2019 in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

309 views 0 12
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