Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

What is the URLs for creating webhook?

Simon Cast July 14, 2013

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?

3 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Aleksander Mierzwicki
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 14, 2013

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

Simon Cast July 15, 2013

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.

Alex Willisson May 12, 2015

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

Aleksander Mierzwicki
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 17, 2015

Hi @Alex Willisson, have you seen this page? It describes all you need :) https://developer.atlassian.com/jiradev/jira-architecture/webhooks Cheers, Alek.

Alex Willisson May 18, 2015

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

Simon Cast May 18, 2015

Hi Alek, I suspect you'll need to delete and re-create to disable/enable webhooks. Regards, Simon

Alex Willisson May 18, 2015

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

Alex Willisson May 18, 2015

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

Like Adam Harvey likes this
0 votes
Simon Cast July 14, 2013

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.

0 votes
Kiran
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 14, 2013

Can you go to Manage Add-ons page and check if the Webhooks plugin is enabled or not?

TAGS
AUG Leaders

Atlassian Community Events