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

let url = 'https://api.coralogix.com/mgmt/openapi/v1/teams/groups/%7Bgroup_id.id%7D/scope';

let options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <API_KEY>', 'content-type': 'application/json'},
  body: '{"scopeFilters":{"applications":[{"filterType":"FILTER_TYPE_UNSPECIFIED","term":"string"}],"subsystems":[{"filterType":"FILTER_TYPE_UNSPECIFIED","term":"string"}]}}'
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error('error:' + err));
{
  "scopeId": {
    "id": 123
  }
}

Authorizations

Authorization
string
header
required

API key authentication

Path Parameters

group_id.id
integer
required

Body

application/json

Request message for setting scope filters (subsystems and applications) for a team group to control access permissions

scopeFilters
object

Response

Response message containing the ID of the newly created or updated scope for a team group

scopeId
object
I