The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

(401) UnAuthorised issue throws While register webhook using api by oauth.

Pradhap K
May 3, 2023
Response :
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<status>
<status-code>401</status-code>
<message>Client must be authenticated to access this resource.</message>
</status>
https://<my-domain>.atlassian.net/rest/api/2/webhook
headers:
Content-Type:application/json
Authorization:Bearer {{access_token}}
body:
{
"name":"h",
"webhooks": [
{
"events": [
"jira:issue_created",
"jira:issue_updated"
],
"fieldIdsFilter": [
"summary",
"customfield_10029"
]
}
]
}
But by using Apikey was create a webhook
 https://<my-domain>.atlassian.net/rest/webhooks/1.0/webhook
Oauth was problem

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events