I've just being implementing JIRA webhooks in the code only to get a 404 returned when trying to create a webhook.
The documentation says the URL is <JIRA URL/rest/webhooks/1.0/webhook but that returned a 404 on Atlassian On Demand.
Does anyone have documentation on what the REST API endpoint is for webhooks?
Community moderators have prevented the ability to post new answers.
Please double check if you don't have any typos in your URL. The given path works for me on BTF and OnDemand instances.
I'm able to get list of webhooks by doing:
curl -u admin:admin https://my-jira/rest/webhooks/1.0/webhook/
Does the above command works for you?
I'm also able to create, edit and delete webhooks using webhooks rest. If it still doesn't work, then please try latest instead of 1.0.
The documentation for webhooks (including its REST API) is here: https://developer.atlassian.com/display/JIRADEV/JIRA+Webhooks+Overview
Ok finally got it to work and I think the issue was the documentation didn't include the trailing slash. Added the trailing slash and it began to work. I've not had time to confirm this though so it is a hypothesis.
Also in terms of documentation it would be great to show the data object returned when creating a webhook instead of just using words. Makes it easier to implement instead of having to bodgy something to see what is returned.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, I'm looking for a way to disable and re-enable webhooks from the REST API, and this thread is the closest thing I've found to that. You mention being able to edit webhooks using the webhooks REST, could you post what command you used for that? The documentation you linked to is gone and the only other docs I can find don't have anything about editing webhooks. Thanks, Alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Alex Willisson, have you seen this page? It describes all you need :) https://developer.atlassian.com/jiradev/jira-architecture/webhooks Cheers, Alek.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alek, Sadly I've already read through that page a few times. Unless I missed something, it doesn't have anything about editing or enabling/disabling webhooks via the REST API. Thanks, Alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alek, I suspect you'll need to delete and re-create to disable/enable webhooks. Regards, Simon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Simon, Yeah, sadly it looks like that. On the bright side, I realized I could let the webhook do its thing and handle detecting if it actually should have been run in the script that it connects to. I'm going to reply to this question with my own answer for the next person who comes looking for this. Thanks, Alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Oops, I forgot which thread this was on. My problem's solution is over at https://answers.atlassian.com/questions/15696545/disableenable-webhooks-from-rest-api
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've manually added a webhook and I've seen that sucessfully fire. I checked the manage add-ons and the "Atlassian WebHooks Plugin" has 5 of 5 modules enabled.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you go to Manage Add-ons page and check if the Webhooks plugin is enabled or not?
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.