POST
/
v3
/
alert-defs
/
{id}
:setActive
const fetch = require('node-fetch');

let url = 'https://api.coralogix.com/mgmt/openapi/v3/alert-defs/%7Bid%7D:setActive?active=SOME_BOOLEAN_VALUE';

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

Query Parameters

active
boolean
required

Whether to enable or disable the alert definition

Response

200
application/json

A successful response.

Response after enabling or disabling an alert definition