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

Bitbucket API Import

Michael Alves November 22, 2016

Does anyone know if the API supports the option to import an existing repository?

e.g. https://bitbucket.org/repo/import

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

2 votes
Michiel Roos November 24, 2016

You can find all available API calls using the Atlassian REST API Browser. There are two private calls:

  • /importer/1.0/projects/{projectKey}/import/repos
  • /importer/1.0/external-source/repos

But the calls are not documented. At least not in the API browser.

Michael Alves November 28, 2016

Hey Michiel,

Since these calls are not documented, are they not meant to be used by the public? I am getting a 404 back for each of those calls:

https://api.bitbucket.org/importer/1.0/projects/{projectKey}/import/repos

https://api.bitbucket.org/importer/1.0/external-source/repos

 

Thanks for responding

P.S. It looks like the REST API browser is a Bitbucket Server plugin. Our repos are hosted on Bitbucket Cloud.

 

 

TAGS
AUG Leaders

Atlassian Community Events