PUT
/
v3
/
api_keys
/
{keyId}
const fetch = require('node-fetch');

let url = 'https://api.coralogix.com/mgmt/openapi/v3/api_keys/%7BkeyId%7D';

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

keyId
string
required

Body

application/json

This data structure is used to update an API key.

Response

200
application/json

A successful response.

The response is of type object.