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

let url = 'https://api.coralogix.com/mgmt/openapi/dataengine/retention-tags/v1';

let options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <API_KEY>', 'content-type': 'application/json'},
  body: '{"retentionUpdateElements":[{"id":"string","name":"string"}]}'
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error('error:' + err));
{
  "retentions": [
    {
      "editable": true,
      "id": "<string>",
      "name": "<string>",
      "order": 123
    }
  ]
}

Authorizations

Authorization
string
header
required

API key authentication

Body

application/json

This data structure is used to update retentions

retentionUpdateElements
object[]
required

Response

This data structure is obtained after updating retentions

retentions
Retention · object[]
required
I