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

let url = 'https://api.coralogix.com/mgmt/openapi/alerts/alerts-general/v3/123e4567-e89b-12d3-a456-426614174000:setActive?active=true';

let options = {method: 'POST', headers: {Authorization: 'Bearer <API_KEY>'}};

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

Path Parameters

id
string
required

The alert definition ID

Example:

"123e4567-e89b-12d3-a456-426614174000"

Query Parameters

active
boolean

Whether to enable or disable the alert definition

Example:

true

Response

Response after enabling or disabling an alert definition