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

let url = 'https://api.coralogix.com/mgmt/openapi/aaa/api-keys/v3/my_key_id';

let options = {
  method: 'PUT',
  headers: {Authorization: 'Bearer <API_KEY>', 'content-type': 'application/json'},
  body: '{"isActive":true,"newName":"my_new_name","permissions":{"permissions":["string"]},"presets":{"presets":["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

key_id
string
required
Example:

"my_key_id"

Body

application/json

This data structure is used to update an API key.

isActive
boolean
Example:

true

newName
string
Example:

"my_new_name"

permissions
object

This data structure represents a set of permissions on an API key.

presets
object

This data structure represents a set of permissions presets on an API key.

Response

The response is of type object.

I