Browse Group Definitions
curl --request GET \
--url https://api.{tenant}.getomneo.com/api/v3/groups/definitionsimport requests
url = "https://api.{tenant}.getomneo.com/api/v3/groups/definitions"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.{tenant}.getomneo.com/api/v3/groups/definitions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.{tenant}.getomneo.com/api/v3/groups/definitions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.{tenant}.getomneo.com/api/v3/groups/definitions"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.{tenant}.getomneo.com/api/v3/groups/definitions")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.{tenant}.getomneo.com/api/v3/groups/definitions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": [
{
"id": 123,
"name": "<string>",
"handle": "<string>",
"type": "<string>",
"source_type": "<string>",
"source_id": 123,
"query": "<string>",
"query_type": "<string>",
"arguments": [
"<unknown>"
],
"period": 123,
"period_type": "<string>",
"absolute_expiry": "<string>",
"refresh_period": 123,
"refresh_period_type": "<string>",
"refresh_absolute_expiry": "<string>",
"last_refreshed_at": "<string>",
"next_refresh_at": "<string>",
"refresh_status": "<string>",
"refresh_error": "<string>",
"short_description": "<string>",
"description": "<string>",
"owner_profile_id": "<string>",
"meta": [
"<unknown>"
],
"is_published": true,
"is_active": true,
"is_archived": true,
"created_at": "<string>",
"updated_at": "<string>",
"current_member_count": 123,
"rules": [
{
"id": 123,
"group_definition_id": 123,
"group_rule_definition_id": 123,
"type": "<string>",
"name": "<string>",
"arguments": [
"<unknown>"
],
"sort_order": 123,
"is_active": true,
"meta": [
"<unknown>"
],
"effective": {
"handle": "<string>",
"evaluator": "<string>",
"rule": {},
"name": "<string>",
"arguments": [
"<unknown>"
]
},
"created_at": "<string>",
"updated_at": "<string>"
}
]
}
]
}{
"message": "<string>"
}{
"message": "<string>"
}Group Definition
Browse Group Definitions
A GET to the /groups/definitions endpoint allows your application to retrieve all group definition records.
GET
/
v3
/
groups
/
definitions
Browse Group Definitions
curl --request GET \
--url https://api.{tenant}.getomneo.com/api/v3/groups/definitionsimport requests
url = "https://api.{tenant}.getomneo.com/api/v3/groups/definitions"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.{tenant}.getomneo.com/api/v3/groups/definitions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.{tenant}.getomneo.com/api/v3/groups/definitions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.{tenant}.getomneo.com/api/v3/groups/definitions"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.{tenant}.getomneo.com/api/v3/groups/definitions")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.{tenant}.getomneo.com/api/v3/groups/definitions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": [
{
"id": 123,
"name": "<string>",
"handle": "<string>",
"type": "<string>",
"source_type": "<string>",
"source_id": 123,
"query": "<string>",
"query_type": "<string>",
"arguments": [
"<unknown>"
],
"period": 123,
"period_type": "<string>",
"absolute_expiry": "<string>",
"refresh_period": 123,
"refresh_period_type": "<string>",
"refresh_absolute_expiry": "<string>",
"last_refreshed_at": "<string>",
"next_refresh_at": "<string>",
"refresh_status": "<string>",
"refresh_error": "<string>",
"short_description": "<string>",
"description": "<string>",
"owner_profile_id": "<string>",
"meta": [
"<unknown>"
],
"is_published": true,
"is_active": true,
"is_archived": true,
"created_at": "<string>",
"updated_at": "<string>",
"current_member_count": 123,
"rules": [
{
"id": 123,
"group_definition_id": 123,
"group_rule_definition_id": 123,
"type": "<string>",
"name": "<string>",
"arguments": [
"<unknown>"
],
"sort_order": 123,
"is_active": true,
"meta": [
"<unknown>"
],
"effective": {
"handle": "<string>",
"evaluator": "<string>",
"rule": {},
"name": "<string>",
"arguments": [
"<unknown>"
]
},
"created_at": "<string>",
"updated_at": "<string>"
}
]
}
]
}{
"message": "<string>"
}{
"message": "<string>"
}⌘I