POST
/
v1
/
outgoing-webhooks
/
test
const fetch = require('node-fetch');

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

let options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <API_KEY>', 'content-type': 'application/json'},
  body: '{"data":{"type":"UNKNOWN","name":"my_webhook","url":"slack.webhook.com","genericWebhook":{"uuid":"d838cd7b-087b-40c6-bc33-80997020f5d0","method":"UNKNOWN","headers":{"Content-Type":"application/json"},"payload":{"key":"value"}},"slack":{"digests":[{"type":"UNKNOWN","isActive":"false"}],"attachments":[{"type":"EMPTY","isActive":"false"}]},"pagerDuty":{"serviceKey":"pager_duty_service_key"},"sendLog":{"uuid":"d838cd7b-087b-40c6-bc33-80997020f5d0","payload":{"key":"value"}},"emailGroup":{"emailAddresses":["example@coralogix.com"]},"microsoftTeams":{},"jira":{"apiToken":"jira_api_token","email":"jira_email","projectKey":"jira_project_key"},"opsgenie":{},"demisto":{"uuid":"d838cd7b-087b-40c6-bc33-80997020f5d0","payload":{"key":"value"}},"awsEventBridge":{"eventBusArn":"arn:aws:events:us-east-1:123456789012:event-bus/default","detail":{"key":"value"},"detailType":"detail_type","source":"source","roleName":"role_name"},"ibmEventNotifications":{"eventNotificationsInstanceId":"string","regionId":"string","sourceId":"string","sourceName":"string","endpointType":"ENDPOINT_TYPE_DEFAULT_OR_PUBLIC"},"msTeamsWorkflow":{}}}'
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error('error:' + err));
{
  "success": {},
  "failure": {
    "errorMessage": "example_error_message",
    "displayMessage": "example_display_message",
    "statusCode": 400
  }
}

Authorizations

Authorization
string
header
required

API key authentication

Body

application/json

Response

200
application/json

A successful response.

The response is of type object.