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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Is it possible to fork a repository with Bitbucket API?


I would like to fork a repository with Bitbucket API like GitHub has. Is it possible?


Thanks in advance.


2 answers

0 votes
Gonchik Tsymzhitov
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Nov 12, 2017

I appreciate your answer but they talked about old API version in the thread and I cannot find the same one in new API version below:

The 2.0 documentation is here but the POST body seems complicated.  Would really like some actual examples... ie what are the minimum required fields?

I was able to figure this out using chrome tools while creating a fork from the BB UI.   Here is a minimal example:

Imagine I have a repo `foo` in workspace `myspace`.  And I want to fork it into `foo-fork` in the same workspace.  The request is

POST {{BB_API}}/repositories/myspace/myspace/forks

  "is_private": true,
  "scm": "git",
  "name": "foo-fork",


Thank you!

Can you provide a full template as an example. 


Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events