atlassian-python-api
atlassian-python-api copied to clipboard
Webhook api does not work (get or create)
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)
Can you post the exact error?