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

Webhooks vs Post Webhooks

Nick Morales September 2, 2020

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
Wolfgang Kritzinger
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 2, 2020

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

Nick Morales September 6, 2020

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events