const fetch = require('node-fetch');

let url = 'https://api.coralogix.com/mgmt/openapi/v1/dashboards/dashboards/%7BdashboardId%7D:pin';

let options = {
  method: 'PATCH',
  headers: {Authorization: 'Bearer <API_KEY>', 'content-type': 'application/json'},
  body: '{"requestId":"string"}'
};

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

dashboardId
string
required

Body

application/json

This is a request used to mark certain dashboard as pinned

Response

200
application/json

A successful response.

This is a response received on successful pinning of the dashboard