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));
{
  "folder": {
    "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

Request for creating view folder.

folder
object

View folder.