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

let url = 'https://api.coralogix.com/mgmt/openapi/aaa/team-groups/v1';

let options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <API_KEY>', 'content-type': 'application/json'},
  body: '{"description":"string","externalId":"string","groupType":"GROUP_TYPE_UNSPECIFIED","name":"string","nextGenScopeId":"string","roleIds":[{"id":0}],"scopeFilters":{"applications":[{"filterType":"FILTER_TYPE_UNSPECIFIED","term":"string"}],"subsystems":[{"filterType":"FILTER_TYPE_UNSPECIFIED","term":"string"}]},"teamId":{"id":0},"userIds":[{"id":"string"}]}'
};

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

Authorizations

Authorization
string
header
required

API key authentication

Body

application/json

Request to create a new team group with specified name, description, roles, users, and optional scope filters. Can be associated with a specific team or the authenticated team.

description
string
externalId
string
groupType
enum<string>
Available options:
GROUP_TYPE_UNSPECIFIED,
GROUP_TYPE_OPEN,
GROUP_TYPE_CLOSED,
GROUP_TYPE_RESTRICTED
name
string
nextGenScopeId
string
roleIds
object[]
scopeFilters
object
teamId
object
userIds
object[]

Response

Response containing the unique identifier of the newly created team group.

groupId
object

This data structure represents the information associated with a team group.

I