Uploaded image for project: 'Jira Cloud'
  1. Jira Cloud
  2. JRACLOUD-71965

Allow tokens when creating webhooks

XMLWordPrintable

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Created on behalf of a Community post:

      https://community.atlassian.com/t5/Jira-questions/Register-Jira-Cloud-Webhook-with-REST-API/qaq-p/1062717

      I want to register an JIRA Cloud webhook via REST API (no connect apps). I have gone through the https://developer.atlassian.com/cloud/jira/platform/webhooks/
      But it seems that it only supports basic auth during webhook registration.

      What I want is to register an webhook with access token in header as 
      Authorization : Bearer <access_token>
      But when I do post it like above it always returns 401 status code.

      Below is the configurations i am trying :

      URL :

       https://<subdomain>.atlassian.net/rest/api/3/webhook

      Headers : 

      Authorization : Bearer <access_token>
      Content-Type : application/json

      Body : 

      Unknown macro: { "name"}

       

            Unassigned Unassigned
            a4b8b6ec0ab1 Prakash Thete
            Votes:
            17 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved: