Are there plans to add endpoints to manage webhooks

This question is in reference to Atlassian Documentation: repositories Endpoint

When creating new repositories for my org, we would like to do it programmatically through the API but we have external webhooks that we call for pushes.

There doesn't seem to be an endpoint that accepts and configures webhooks. Are there any plans to add this feature?

1 answer

1 accepted

0 vote

This is already possible, see Manage webhooks in the Bitbucket Cloud REST API documentation, specifically section Create webhooks:

You can create a webhook through Bitbucket Cloud or with the API. Use the following steps to create a webhook on a repository in Bitbucket. The administrators of a repository are the only users who can create a webhook on that repository.

[...]

To create a webhook using the API, you need to know the format of the HTTP request that Bitbucket expects and the format of the HTTP response that Bitbucket returns to your server. Refer to the reference documentation for descriptions and examples of these requests and responses.

The latter links to the webhooks resource, which manages webhooks on a Bitbucket Cloud repository and provides resp. REST API methods to POST a webhook etc.

Thanks!

I looked there and didnt see the link at the end of the paragraph that actually pointed to the api docs at https://confluence.atlassian.com/bitbucket/webhooks-resource-735642279.html . It only appeared to have instructions on how to do it in the Web interface.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

29,190 views 26 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you