Switch a system notification rule on or off, or re-route it
curl --request PATCH \
--url https://api.journeybee.io/v1/notification-rules/{uuid}/system-settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"is_active": true,
"channels": []
}
'import requests
url = "https://api.journeybee.io/v1/notification-rules/{uuid}/system-settings"
payload = {
"is_active": True,
"channels": []
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({is_active: true, channels: []})
};
fetch('https://api.journeybee.io/v1/notification-rules/{uuid}/system-settings', 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.journeybee.io/v1/notification-rules/{uuid}/system-settings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'is_active' => true,
'channels' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.journeybee.io/v1/notification-rules/{uuid}/system-settings"
payload := strings.NewReader("{\n \"is_active\": true,\n \"channels\": []\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.patch("https://api.journeybee.io/v1/notification-rules/{uuid}/system-settings")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"is_active\": true,\n \"channels\": []\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.journeybee.io/v1/notification-rules/{uuid}/system-settings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"is_active\": true,\n \"channels\": []\n}"
response = http.request(request)
puts response.read_body{
"uuid": "<string>",
"name": "<string>",
"description": "<string>",
"is_active": true,
"is_system": true,
"is_transactional": true,
"event_patterns": [
"<string>"
],
"schedule_config": {
"kind": "deal_expiration",
"days_before": 18250
},
"conditions": [
{
"field": "<string>",
"operator": "eq",
"value": "<unknown>"
}
],
"has_app_only_conditions": true,
"recipient_type": "actor",
"recipient_config": {
"role": "<string>",
"user_uuids": [
"<string>"
]
},
"channels": [
"in_app"
],
"integration_destination": {
"provider": "slack",
"channel_name": "<string>",
"channel_type": "public"
},
"email_config": {
"header": "<string>",
"footer": "<string>",
"button_label": "<string>",
"button_object": "lead",
"show_branding": true
},
"audience": "company",
"title_template": "<string>",
"body_template": "<string>",
"sort_order": 123,
"created_at": "<string>",
"updated_at": "<string>",
"last_triggered_at": "<string>",
"trigger_count": 123
}Notification Rules
Switch a system notification rule on or off, or re-route it
System rules are seeded per company and cannot be edited or deleted. Change whether one is active, which side it notifies and which channels it uses. Invite rules only accept is_active. Rules the platform runs for correctness are not reachable here.
PATCH
/
notification-rules
/
{uuid}
/
system-settings
Switch a system notification rule on or off, or re-route it
curl --request PATCH \
--url https://api.journeybee.io/v1/notification-rules/{uuid}/system-settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"is_active": true,
"channels": []
}
'import requests
url = "https://api.journeybee.io/v1/notification-rules/{uuid}/system-settings"
payload = {
"is_active": True,
"channels": []
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({is_active: true, channels: []})
};
fetch('https://api.journeybee.io/v1/notification-rules/{uuid}/system-settings', 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.journeybee.io/v1/notification-rules/{uuid}/system-settings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'is_active' => true,
'channels' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.journeybee.io/v1/notification-rules/{uuid}/system-settings"
payload := strings.NewReader("{\n \"is_active\": true,\n \"channels\": []\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.patch("https://api.journeybee.io/v1/notification-rules/{uuid}/system-settings")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"is_active\": true,\n \"channels\": []\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.journeybee.io/v1/notification-rules/{uuid}/system-settings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"is_active\": true,\n \"channels\": []\n}"
response = http.request(request)
puts response.read_body{
"uuid": "<string>",
"name": "<string>",
"description": "<string>",
"is_active": true,
"is_system": true,
"is_transactional": true,
"event_patterns": [
"<string>"
],
"schedule_config": {
"kind": "deal_expiration",
"days_before": 18250
},
"conditions": [
{
"field": "<string>",
"operator": "eq",
"value": "<unknown>"
}
],
"has_app_only_conditions": true,
"recipient_type": "actor",
"recipient_config": {
"role": "<string>",
"user_uuids": [
"<string>"
]
},
"channels": [
"in_app"
],
"integration_destination": {
"provider": "slack",
"channel_name": "<string>",
"channel_type": "public"
},
"email_config": {
"header": "<string>",
"footer": "<string>",
"button_label": "<string>",
"button_object": "lead",
"show_branding": true
},
"audience": "company",
"title_template": "<string>",
"body_template": "<string>",
"sort_order": 123,
"created_at": "<string>",
"updated_at": "<string>",
"last_triggered_at": "<string>",
"trigger_count": 123
}Authorizations
Path Parameters
Body
application/json
Response
200 - application/json
Default Response