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

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

let options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <API_KEY>', 'content-type': 'application/json'},
  body: '{"name":"My Folder"}'
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error('error:' + err));
{
  "id": "3dc02998-0b50-4ea8-b68a-4779d716fa1f",
  "name": "My Folder"
}

Authorizations

Authorization
string
header
required

API key authentication

Body

application/json

Create view folder.

name
string

Folder name

Minimum length: 1
Example:

"My Folder"

Response

200 - application/json

View folder.

name
string
required

Folder name

Minimum length: 1
Example:

"My Folder"

id
string

Unique identifier for folders

Required string length: 36
Example:

"3dc02998-0b50-4ea8-b68a-4779d716fa1f"

I