Last updated
Was this helpful?
Was this helpful?
notification.webhook.endpoints = [
{
name: TESTING_WEBHOOK_NAME
url: TESTING_WEBHOOK_URL
version: 0
wsConfig: {}
includedTheHiveOrganisations: ["ORGANIZATION_NAME"]
excludedTheHiveOrganisations: []
},
{
name: PRODUCTION_WEBHOOK_NAME
url: PRODUCTION_WEBHOOK_URL
version: 0
wsConfig: {}
includedTheHiveOrganisations: ["ORGANIZATION_NAME"]
excludedTheHiveOrganisations: []
}
]curl -XPUT -uTHEHIVE_USERNAME:THEHIVE_PASSWORD -H 'Content-type: application/json' THEHIVE_URL/api/config/organisation/notification -d '
{
"value": [
{
"delegate": false,
"trigger": { "name": "AnyEvent"},
"notifier": { "name": "webhook", "endpoint": "TESTING_WEBHOOK_NAME" }
},
{
"delegate": false,
"trigger": { "name": "AnyEvent"},
"notifier": { "name": "webhook", "endpoint": "PRODUCTION_WEBHOOK_NAME" }
}
]
}'