(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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events