Discussions
Categories
Groups
Help
Home
Q&A
Jira Service Management
(401) UnAuthorised issue throws While register webhook using api by oauth.
Pradhap K
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"
,
"url"
:
"
https://your-app.example.com/webhook-received
"
,
"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
Accepted answers
All comments
There are no accepted answers yet
Welcome!
It looks like you're new here. Sign in or register to get started.
Sign In
Register
Quick Links
Unanswered
Groups
Help
Find more posts tagged with
cloud
webhook
jira-service-management-cloud
jira-service-management