I am trying to use Bitbucket rest api 1.0 to create a webhook using the following POST call:https://<bitbucket domain>/rest/api/1.0/projects/{project}/repos/{repo}/webhooks?url=https://<jenkins domain>/git/notifyCommit?url=ssh://git@<bitbucket domain>/{project}/{repo}.gitand I am getting the following error:
Hi @harshainfo Welcome to the community!
Please refer the below link:https://docs.atlassian.com/bitbucket-server/rest/5.14.0/bitbucket-rest.html
Could you please cross verify the brace ({}), ---> /{repo>.git closing brace is missing.Please verify the quotation mark & braceHope this will help.Thanks
Thank you Ankit. Apologies, I fixed the typo.
Yes I was using that documentation and specifically I am following the steps defined in:https://docs.atlassian.com/bitbucket-server/rest/5.14.0/bitbucket-rest.html#idm46783598031088Yet, I am not sure how to make the POST call to:https://<bitbucket domain>/rest/api/1.0/projects/{project}/repos/{repo}/webhooksto create the webhook as defined there.Even the example request representation is empty.
Hence I would appreciate if one could reply with a working POST call to successfully create a webhook.Thanks
It looks like you're new here. Sign in or register to get started.