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

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

Avatar

1 badge earned

Collect

Participate in fun challenges

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

Challenges
Coins

Gift kudos to your peers

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

Recognition
Ribbon

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!

Leaderboard

Bitbucket server rest api to get project or repo level settings

Looking for easy way to save/export bitbucket project or repository settings to use as a backup. 
Tried below but that's not a known method
http://example.com/rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/settings

Any help/suggestion is appreciated.


1 answer

1 accepted

0 votes
Answer accepted
Ulrich Kuhnhardt _IzymesCo_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
Dec 15, 2022

Hello Radhika,

According to the REST API docs there is no single endpoint to fetch or restore all settings.

Repo settings endpoints are divided up into different aspects such as 

pull request settings: /rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/settings/pull-requests

repo hooks: 

/rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/settings/hooks

You would probably need a script to fetch and 'backup' the settings you need to keep, same for restore.

Hope that helps,

Ulrich, // Izymes

Thanks for the response @Ulrich Kuhnhardt _IzymesCo_ I figured it's not there but worth a try asking the community.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events