The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to create project in bit bucket using REST API or ansible playbook?

Shubham Gupta
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 3, 2021

 

I was trying to find documents to guide me to create project in bitbucket using Rest API or ansible playbook but i am unable to find such documents please help.

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Paweł Smolarz
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 14, 2021

Hi,

For Ansible please try use Ansible collection: https://galaxy.ansible.com/esp/bitbucket with modules for :

  • bitbucket_application_link
  • bitbucket_application_link_info
  • bitbucket_branch
  • bitbucket_branch_info
  • bitbucket_branch_permissions
  • bitbucket_branch_permissions_info
  • bitbucket_clone
  • bitbucket_copy
  • bitbucket_default_branch
  • bitbucket_directory_sync
  • bitbucket_find
  • bitbucket_project
  • bitbucket_project_info
  • bitbucket_project_permissions
  • bitbucket_project_permissions_info
  • bitbucket_project_reviewer
  • bitbucket_pull_request
  • bitbucket_pull_request_info
  • bitbucket_push
  • bitbucket_repo
  • bitbucket_repo_info
  • bitbucket_repo_permissions
  • bitbucket_repo_permissions_info
  • bitbucket_repo_reviewer
  • bitbucket_slurp
  • bitbucket_webhook

 

Regards,

Pawel

0 votes
Charlie Misonne
Community Champion
May 3, 2021

Hi Shubham,

Welcome to the Atlassian Community!

The REST API of Bitbucket Server is documented. The main page can be found here.

But here is a direct link to the POST endpoint for creating projects: https://docs.atlassian.com/bitbucket-server/rest/7.12.1/bitbucket-rest.html#idp147

With Ansible I can't help you

TAGS
AUG Leaders

Atlassian Community Events