Add, update, or remove alert channels
curl --request PUT \
--url https://api.range.org/v1/risk/channels \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"operations": [
{
"action": "add",
"channel": {
"name": "Primary Slack Channel",
"type": "slack",
"params": {
"webhook_url": "https://hooks.slack.com/services/T00/B00/xxxx"
}
}
},
{
"action": "update",
"channel": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Renamed Channel",
"enabled": false
}
},
{
"action": "remove",
"channel": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
}
]
}
'import requests
url = "https://api.range.org/v1/risk/channels"
payload = { "operations": [
{
"action": "add",
"channel": {
"name": "Primary Slack Channel",
"type": "slack",
"params": { "webhook_url": "https://hooks.slack.com/services/T00/B00/xxxx" }
}
},
{
"action": "update",
"channel": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Renamed Channel",
"enabled": False
}
},
{
"action": "remove",
"channel": { "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890" }
}
] }
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
operations: [
{
action: 'add',
channel: {
name: 'Primary Slack Channel',
type: 'slack',
params: {webhook_url: 'https://hooks.slack.com/services/T00/B00/xxxx'}
}
},
{
action: 'update',
channel: {
id: 'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
name: 'Renamed Channel',
enabled: false
}
},
{action: 'remove', channel: {id: 'a1b2c3d4-e5f6-7890-abcd-ef1234567890'}}
]
})
};
fetch('https://api.range.org/v1/risk/channels', 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.range.org/v1/risk/channels",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'operations' => [
[
'action' => 'add',
'channel' => [
'name' => 'Primary Slack Channel',
'type' => 'slack',
'params' => [
'webhook_url' => 'https://hooks.slack.com/services/T00/B00/xxxx'
]
]
],
[
'action' => 'update',
'channel' => [
'id' => 'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
'name' => 'Renamed Channel',
'enabled' => false
]
],
[
'action' => 'remove',
'channel' => [
'id' => 'a1b2c3d4-e5f6-7890-abcd-ef1234567890'
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>"
],
]);
$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.range.org/v1/risk/channels"
payload := strings.NewReader("{\n \"operations\": [\n {\n \"action\": \"add\",\n \"channel\": {\n \"name\": \"Primary Slack Channel\",\n \"type\": \"slack\",\n \"params\": {\n \"webhook_url\": \"https://hooks.slack.com/services/T00/B00/xxxx\"\n }\n }\n },\n {\n \"action\": \"update\",\n \"channel\": {\n \"id\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"name\": \"Renamed Channel\",\n \"enabled\": false\n }\n },\n {\n \"action\": \"remove\",\n \"channel\": {\n \"id\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\"\n }\n }\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
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.put("https://api.range.org/v1/risk/channels")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"operations\": [\n {\n \"action\": \"add\",\n \"channel\": {\n \"name\": \"Primary Slack Channel\",\n \"type\": \"slack\",\n \"params\": {\n \"webhook_url\": \"https://hooks.slack.com/services/T00/B00/xxxx\"\n }\n }\n },\n {\n \"action\": \"update\",\n \"channel\": {\n \"id\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"name\": \"Renamed Channel\",\n \"enabled\": false\n }\n },\n {\n \"action\": \"remove\",\n \"channel\": {\n \"id\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\"\n }\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.range.org/v1/risk/channels")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"operations\": [\n {\n \"action\": \"add\",\n \"channel\": {\n \"name\": \"Primary Slack Channel\",\n \"type\": \"slack\",\n \"params\": {\n \"webhook_url\": \"https://hooks.slack.com/services/T00/B00/xxxx\"\n }\n }\n },\n {\n \"action\": \"update\",\n \"channel\": {\n \"id\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"name\": \"Renamed Channel\",\n \"enabled\": false\n }\n },\n {\n \"action\": \"remove\",\n \"channel\": {\n \"id\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\"\n }\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"acknowledged": true
}Channels
Add, update, or remove alert channels
Batch create, update, or soft-delete alert channels for your workspace. Each operation specifies an action (“add”, “update”, or “remove”) and the channel data.
PUT
/
v1
/
risk
/
channels
Add, update, or remove alert channels
curl --request PUT \
--url https://api.range.org/v1/risk/channels \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"operations": [
{
"action": "add",
"channel": {
"name": "Primary Slack Channel",
"type": "slack",
"params": {
"webhook_url": "https://hooks.slack.com/services/T00/B00/xxxx"
}
}
},
{
"action": "update",
"channel": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Renamed Channel",
"enabled": false
}
},
{
"action": "remove",
"channel": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
}
]
}
'import requests
url = "https://api.range.org/v1/risk/channels"
payload = { "operations": [
{
"action": "add",
"channel": {
"name": "Primary Slack Channel",
"type": "slack",
"params": { "webhook_url": "https://hooks.slack.com/services/T00/B00/xxxx" }
}
},
{
"action": "update",
"channel": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Renamed Channel",
"enabled": False
}
},
{
"action": "remove",
"channel": { "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890" }
}
] }
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
operations: [
{
action: 'add',
channel: {
name: 'Primary Slack Channel',
type: 'slack',
params: {webhook_url: 'https://hooks.slack.com/services/T00/B00/xxxx'}
}
},
{
action: 'update',
channel: {
id: 'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
name: 'Renamed Channel',
enabled: false
}
},
{action: 'remove', channel: {id: 'a1b2c3d4-e5f6-7890-abcd-ef1234567890'}}
]
})
};
fetch('https://api.range.org/v1/risk/channels', 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.range.org/v1/risk/channels",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'operations' => [
[
'action' => 'add',
'channel' => [
'name' => 'Primary Slack Channel',
'type' => 'slack',
'params' => [
'webhook_url' => 'https://hooks.slack.com/services/T00/B00/xxxx'
]
]
],
[
'action' => 'update',
'channel' => [
'id' => 'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
'name' => 'Renamed Channel',
'enabled' => false
]
],
[
'action' => 'remove',
'channel' => [
'id' => 'a1b2c3d4-e5f6-7890-abcd-ef1234567890'
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>"
],
]);
$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.range.org/v1/risk/channels"
payload := strings.NewReader("{\n \"operations\": [\n {\n \"action\": \"add\",\n \"channel\": {\n \"name\": \"Primary Slack Channel\",\n \"type\": \"slack\",\n \"params\": {\n \"webhook_url\": \"https://hooks.slack.com/services/T00/B00/xxxx\"\n }\n }\n },\n {\n \"action\": \"update\",\n \"channel\": {\n \"id\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"name\": \"Renamed Channel\",\n \"enabled\": false\n }\n },\n {\n \"action\": \"remove\",\n \"channel\": {\n \"id\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\"\n }\n }\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
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.put("https://api.range.org/v1/risk/channels")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"operations\": [\n {\n \"action\": \"add\",\n \"channel\": {\n \"name\": \"Primary Slack Channel\",\n \"type\": \"slack\",\n \"params\": {\n \"webhook_url\": \"https://hooks.slack.com/services/T00/B00/xxxx\"\n }\n }\n },\n {\n \"action\": \"update\",\n \"channel\": {\n \"id\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"name\": \"Renamed Channel\",\n \"enabled\": false\n }\n },\n {\n \"action\": \"remove\",\n \"channel\": {\n \"id\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\"\n }\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.range.org/v1/risk/channels")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"operations\": [\n {\n \"action\": \"add\",\n \"channel\": {\n \"name\": \"Primary Slack Channel\",\n \"type\": \"slack\",\n \"params\": {\n \"webhook_url\": \"https://hooks.slack.com/services/T00/B00/xxxx\"\n }\n }\n },\n {\n \"action\": \"update\",\n \"channel\": {\n \"id\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"name\": \"Renamed Channel\",\n \"enabled\": false\n }\n },\n {\n \"action\": \"remove\",\n \"channel\": {\n \"id\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\"\n }\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"acknowledged": true
}Authorizations
AuthorizationAuthorization
Authorization method required to allow user to access the api endpoints.
Body
application/json
Required array length:
1 - 1000 elementsShow child attributes
Show child attributes
Example:
[
{
"action": "add",
"channel": {
"name": "Primary Slack Channel",
"type": "slack",
"params": {
"webhook_url": "https://hooks.slack.com/services/T00/B00/xxxx"
}
}
},
{
"action": "update",
"channel": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Renamed Channel",
"enabled": false
}
},
{
"action": "remove",
"channel": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
}
]
Response
200 - application/json
Example:
true
Last modified on July 22, 2026
Was this page helpful?
⌘I