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}.git
and 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 & brace
Hope 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#idm46783598031088
Yet, I am not sure how to make the POST call to:
https://<bitbucket domain>/rest/api/1.0/projects/{project}/repos/{repo}/webhooks
to 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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.