Remove a profile from a static group
curl --request POST \
--url https://api.{tenant}.getomneo.com/api/v3/groups/definitions/{group}/profiles/{profile}/remove \
--header 'Content-Type: application/json' \
--data '
{
"removed_reason": "<string>",
"removed_by_profile_id": "<string>"
}
'import requests
url = "https://api.{tenant}.getomneo.com/api/v3/groups/definitions/{group}/profiles/{profile}/remove"
payload = {
"removed_reason": "<string>",
"removed_by_profile_id": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({removed_reason: '<string>', removed_by_profile_id: '<string>'})
};
fetch('https://api.{tenant}.getomneo.com/api/v3/groups/definitions/{group}/profiles/{profile}/remove', 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/{group}/profiles/{profile}/remove",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'removed_reason' => '<string>',
'removed_by_profile_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.{tenant}.getomneo.com/api/v3/groups/definitions/{group}/profiles/{profile}/remove"
payload := strings.NewReader("{\n \"removed_reason\": \"<string>\",\n \"removed_by_profile_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.{tenant}.getomneo.com/api/v3/groups/definitions/{group}/profiles/{profile}/remove")
.header("Content-Type", "application/json")
.body("{\n \"removed_reason\": \"<string>\",\n \"removed_by_profile_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.{tenant}.getomneo.com/api/v3/groups/definitions/{group}/profiles/{profile}/remove")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"removed_reason\": \"<string>\",\n \"removed_by_profile_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": 123,
"group_definition_id": 123,
"profile_id": "<string>",
"added_at": "<string>",
"expires_at": "<string>",
"removed_at": "<string>",
"removed_reason": "<string>",
"added_by_profile_id": "<string>",
"removed_by_profile_id": "<string>",
"source_type": "<string>",
"source_id": 123,
"meta": [
"<unknown>"
],
"created_at": "<string>",
"updated_at": "<string>"
}
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>",
"errors": {}
}Group Profile
Remove a profile from a static group
A POST to /groups/definitions/{group}/profiles/{profile}/remove soft-removes the
active membership (sets removed_at + removed_reason + removed_by_profile_id). POST (not
DELETE) so the payload is explicit; body fields mirror the columns —
removed_reason (defaults to GroupMembership::REMOVED_REASON_MANUAL when omitted) and
removed_by_profile_id. Returns the removed membership (200), or 404 when the profile has
no active membership in the group (the removal target does not exist).
POST
/
v3
/
groups
/
definitions
/
{group}
/
profiles
/
{profile}
/
remove
Remove a profile from a static group
curl --request POST \
--url https://api.{tenant}.getomneo.com/api/v3/groups/definitions/{group}/profiles/{profile}/remove \
--header 'Content-Type: application/json' \
--data '
{
"removed_reason": "<string>",
"removed_by_profile_id": "<string>"
}
'import requests
url = "https://api.{tenant}.getomneo.com/api/v3/groups/definitions/{group}/profiles/{profile}/remove"
payload = {
"removed_reason": "<string>",
"removed_by_profile_id": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({removed_reason: '<string>', removed_by_profile_id: '<string>'})
};
fetch('https://api.{tenant}.getomneo.com/api/v3/groups/definitions/{group}/profiles/{profile}/remove', 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/{group}/profiles/{profile}/remove",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'removed_reason' => '<string>',
'removed_by_profile_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.{tenant}.getomneo.com/api/v3/groups/definitions/{group}/profiles/{profile}/remove"
payload := strings.NewReader("{\n \"removed_reason\": \"<string>\",\n \"removed_by_profile_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.{tenant}.getomneo.com/api/v3/groups/definitions/{group}/profiles/{profile}/remove")
.header("Content-Type", "application/json")
.body("{\n \"removed_reason\": \"<string>\",\n \"removed_by_profile_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.{tenant}.getomneo.com/api/v3/groups/definitions/{group}/profiles/{profile}/remove")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"removed_reason\": \"<string>\",\n \"removed_by_profile_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": 123,
"group_definition_id": 123,
"profile_id": "<string>",
"added_at": "<string>",
"expires_at": "<string>",
"removed_at": "<string>",
"removed_reason": "<string>",
"added_by_profile_id": "<string>",
"removed_by_profile_id": "<string>",
"source_type": "<string>",
"source_id": 123,
"meta": [
"<unknown>"
],
"created_at": "<string>",
"updated_at": "<string>"
}
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>",
"errors": {}
}Body
application/json
Response
GroupProfile
Show child attributes
Show child attributes
⌘I