POST
/
v1
/
policies:reorder
const fetch = require('node-fetch');

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

let options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <API_KEY>', 'content-type': 'application/json'},
  body: '{"orders":[{"order":1,"id":"id"}],"sourceType":"SOURCE_TYPE_UNSPECIFIED"}'
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error('error:' + err));
{
  "orders": [
    {
      "order": 1,
      "id": "id"
    }
  ]
}

Authorizations

Authorization
string
header
required

API key authentication

Body

application/json

This data structue is used to reorder policies.

Response

200
application/json

A successful response.

This data structure is obtained when reordering policies.