-
Notifications
You must be signed in to change notification settings - Fork 640
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] WebHook creation does not work #1318
Comments
The documentation was wrong. The correct body is:
@crackytsi I let you tell me if webhooks work for you before I close this issue. |
Not @crackytsi here but can confirm the updated POST body works now.
Also, looks like the setting is set per organisiation and not globally.
…On Sat, May 16, 2020 at 7:29 PM To-om ***@***.***> wrote:
The documentation was wrong. The correct body is:
{
"value": [
{
"delegate": false,
"trigger": { "name": "AnyEvent"},
"notifier": { "name": "webhook", "endpoint": "local" }
}
]
}
@crackytsi <https://github.com/crackytsi> I let you tell me if webhooks
work for you before I close this issue.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1318 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGWR3JBGLNEZGUWGZWV6AUTRRZMIVANCNFSM4M6RWBHQ>
.
|
@To-om : Thank you very much, it works. I also noted that compared to the old-webhook all nested objects are added (e.g. update of log --> contains data of case-task and case). Meanwhile in some situtations that might be helpfull in others this generates bigger responses and slows down the speed. Is this configurable to have the output same as in the 2.x and 3.x releases? |
Now version 0 doesn't include parent object and version 1 does. This let you choose. |
@crackytsi if you want to remove webhook, set an empty list:
|
Thank you very much :) |
Bug / Feature Request
Work Environment
Problem Description
I tried to create a webhook.
Basically there is a little mistake in the documentation about the curl command, see my PR here:
TheHive-Project/TheHiveDocs#167
But never the less, after creation it just returns:
{"path":"notification","defaultValue":[],"value":null}
Which sounds wrong to my eyes.
After trying to perform a get command to /api/config/organisation/notification it is also returning this result.
The WebHook does not work.
Can you take a look into that and give me a little hint?
The text was updated successfully, but these errors were encountered: