POST
/
v1
/
teams
/
groups
/
{groupId.id}
/
scope
const fetch = require('node-fetch');

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

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

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

groupId.id
integer
required

Body

application/json

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

Response

200
application/json

A successful response.

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