atlassian-python-api icon indicating copy to clipboard operation
atlassian-python-api copied to clipboard

Webhook api does not work (get or create)

Open anunDev opened this issue 2 years ago • 1 comments

Hi, We are trying to configure webhook but faced with url error. (saas platform - cloud) On Cloud class there is no reference to webhooks section in docs On Bitbucket class we got a different url from the api 2.0 webhook like docs “https://api.bitbucket.org/2.0/repositories/my-workspace/my-repo-slug/hooks” But we got 404 Client Error: Not Found for url: “https://api.bitbucket.org/2.0/projects/{my_project_key}/repos/{my_repo_slug}/webhooks”

try: res = Bitbucket(url="https://api.bitbucket.org/", username="anundev", password=self.bitbucket_token).create_webhook("REPO", "compliance", "blabla", events=["repo:push"], webhook_url=target_url, active=True) print(res) except Exception as e: print(e)

anunDev avatar Apr 19 '22 15:04 anunDev

Can you post the exact error?

Spacetown avatar May 23 '22 17:05 Spacetown