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