Skip to main content
node
const fetch = require('node-fetch');

let url = 'https://api.coralogix.com/mgmt/openapi/integrations/webhooks/v1';

let options = {
  method: 'PUT',
  headers: {Authorization: 'Bearer <API_KEY>', 'content-type': 'application/json'},
  body: '{"data":{"genericWebhook":{"headers":[{"key":"string","value":"string"}],"method":"UNKNOWN","payload":{"key":"value"},"uuid":"d838cd7b-087b-40c6-bc33-80997020f5d0"},"name":"my_webhook","type":"UNKNOWN","url":"slack.webhook.com"},"id":"example_id"}'
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error('error:' + err));
{}

Authorizations

Authorization
string
header
required

API key authentication

Body

application/json
data
object
required
  • Outgoing webhook input data
  • Outgoing webhook input data
  • Outgoing webhook input data
  • Outgoing webhook input data
  • Outgoing webhook input data
  • Outgoing webhook input data
  • Outgoing webhook input data
  • Outgoing webhook input data
  • Outgoing webhook input data
  • Outgoing webhook input data
  • Outgoing webhook input data
  • Outgoing webhook input data
id
string
required
Example:

"example_id"

Response

The response is of type object.

I