Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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

Webhooks vs Post Webhooks

Edited

Hi, I'm trying to automate the task of getting a 'Post Webhook' from each of my repos, copy it, create a 'Webhook' with the same configuration and disable the original 'Post Webhook'. I am thinking of using the Bitbucket API and I can only find an API for POST 'Post Webhooks' but not for 'Webhooks'. Any ideas how I could go about this?

Screen Shot 2020-09-02 at 9.23.40 PM.png

GET/POST Post Webhooks:

https://{bitbucket-instance}/rest/webhook/1.0/projects/{project}/repos/{repo}/configurations

1 answer

1 accepted

0 votes
Answer accepted

Hi!

I think what you're looking for is this API: https://docs.atlassian.com/bitbucket-server/rest/7.5.0/bitbucket-rest.html#idp385 

/rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/webhooks

Cheers,

Wolfgang

Yes! that's perfect, thank you so much!

Suggest an answer

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

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

117 views 2 4
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