Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Create branch and add users while creating repository via APIv2 request

I'm creating repository with POST request to this APIv2 endpoint.
I'm able to create blank repository without any branches and only myself as user. Sample request body:
  "scm": "git",
  "fork_policy": "allow_forks",
  "name": "monitoring-lambda",
  "project": { "key": "PRJ" },
  "is_private": True
I would like to create initial branch, 'develop' for instance. I've tried to use key 'ref', mentioned in docs, but it didn't change anything:
  "ref": {
     "name": "develop",
     "type": "branch"
Additionally, I want to add some users or groups to it. I can see fields like 'hash', 'message' which seems to be related to commit, or 'participants', which is probably list of users. However, it's not possible for me to figure out anything concrete from API documentation. How can I use these fields, what do they do indeed? What is 'all of:' supposed to mean?
Please, share if you now whether it's possible to do what I want in scope of this request, what are these fields or any example usage of them.

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

244 views 2 9
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you