{
"name": "my first webhook via rest",
"url": "https://callbackurl.com",
"events": [
"jira:issue_deleted",
"jira:issue_updated"
],
"excludeBody" : false
}
but i’m getting the following error:
{
"message": "Cannot invoke \"java.util.List.stream()\" because the return value of \"com.atlassian.jira.rest.v2.webhook.DynamicWebhookRegistrationRequestBean.getWebhooks()\" is null",
"status-code": 500,
"stack-trace": ""
}
While the payload you pasted, it used in the API used to register “admin webhooks” - the same the admin can see in the Jira Webhooks UI and the proper url to send this request it POST /rest/webhooks/1.0/webhook.
See more: docs