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

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

let options = {
  method: 'PUT',
  headers: {Authorization: 'Bearer <API_KEY>', 'content-type': 'application/json'},
  body: '{"groupId":{"id":0},"name":"string","description":"string","externalId":"string","roleUpdates":{"roleIds":[{"id":0}]},"userUpdates":{"userIds":[{"id":"string"}]},"scopeFilters":{"subsystems":[{"term":"string","filterType":"FILTER_TYPE_UNSPECIFIED"}],"applications":[{"term":"string","filterType":"FILTER_TYPE_UNSPECIFIED"}]},"nextGenScopeId":"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

Body

application/json

Request to modify an existing team group's details, including its name, description, roles, users, and scope settings.

groupId
object

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

name
string
description
string
externalId
string
roleUpdates
object

This data structure represents the information associated with an API key.

userUpdates
object

This data structure represents the information associated with an API key.

scopeFilters
object
nextGenScopeId
string

Response

A successful response.

Response confirming the successful update of a team group's configuration.

I