Hi. I have a problem with webhook refreshing. I'm using Rest API for other integration.
As it written in documentation every webhook created by Rest API should be refreshed every 30 days, otherwise they expire.
I found no refresh endpoint for my case (other integrations). Will it extend webhook expire date if I make http put on https://yourdomain.atlassian.net/rest/webhooks/1.0/webhook ?
Hello @jiraIntegration101 ,
Welcome to the Atlassian Community!
I am not sure I have a correct understanding of what you are asking for.
Is it that you have some webhooks registered in your Jira but not all of them are returned when calling the GET /rest/api/2/webhook endpoint or anything else? Can you kindly provide more details?
Specifically, make sure to clarify:
Cheers,
Dario
Hello @Dario B , thanks for fast answer.
I'm just using webhooks and REST APIs to integrate with other system.
I have registrated webhook and according to documentation I need to refresh it once in 30 days.
I found only one endpoint to do it, but it requires connect apps permission.
I don't need to create connected app. So how I can solve this problem?
What if make PUT /rest/webhooks/1.0/webhook/{webhookId} ?
Will this refresh my webhook ? If not what should I do?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @jiraIntegration101 ,
Thanks for clarifying, I was not sure this was indeed the case.
The documentation is a bit unclear indeed, but please notice that the REST API endpoint that you use to register webhooks for "other integrations" is different than the one used to register connect apps and does not need to be refreshed.
This is mentioned in the section named "Registering a webhook":
- Register a webhook via the REST API: Connect apps Note, restrictions apply.
- Register a webhook via the REST API: Other integrations Note, Connect apps cannot register webhooks via this Jira REST API.
And indeed:
So, to summarize: it is not needed to refresh webhooks that have not been created from a Connect App.
Cheers,
Dario
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.
You are very welcome! :)
Please do not hesitate opening another thread in case of any other question or concern.
Cheers,
Dario
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To piggyback off of this, in a Connect App, are webhooks registered through REST API and through the atlassian-connect.json descriptor fundamentally different?
When I request registered webhooks with GET /rest/api/latest/webhook I never get webhooks that I registered through a descriptor.
I am doing this because of the assumption that Connect App webhooks must be refreshed every 30 days and I want to refresh those described in the descriptor.
Do descriptor webhooks need to be refreshed or are they more like the "install", "uninstall", "enable", and "disable" events that are, and I quote, essentially webhooks?
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.