Update Config
curl --request PUT \
--url https://api.your-blindsight.com/api/runtime-security/config \
--header 'Content-Type: application/json' \
--data '
{
"enabled": true,
"block_threshold": 0.55,
"redact_threshold": 0.35,
"max_text_length": 32000,
"log_events": true,
"pre_prompt": "<string>",
"pre_prompt_placement": "prepend",
"agentic": {
"tool_allowlist": [
"<string>"
],
"tool_denylist": [
"<string>"
],
"max_arg_bytes": 32000,
"allow_private_network": false
},
"dlp_fail_mode": "open",
"dlp_fail_mode_locked": false,
"dlp_host_rule_overrides": [
{}
],
"dlp_protect_unsanctioned": false,
"file_scanning_enabled": true,
"file_unredactable_action": "block",
"pseudonymize_enabled": false,
"pseudonymize_labels": {},
"pseudonymize_retention_days": 30
}
'import requests
url = "https://api.your-blindsight.com/api/runtime-security/config"
payload = {
"enabled": True,
"block_threshold": 0.55,
"redact_threshold": 0.35,
"max_text_length": 32000,
"log_events": True,
"pre_prompt": "<string>",
"pre_prompt_placement": "prepend",
"agentic": {
"tool_allowlist": ["<string>"],
"tool_denylist": ["<string>"],
"max_arg_bytes": 32000,
"allow_private_network": False
},
"dlp_fail_mode": "open",
"dlp_fail_mode_locked": False,
"dlp_host_rule_overrides": [{}],
"dlp_protect_unsanctioned": False,
"file_scanning_enabled": True,
"file_unredactable_action": "block",
"pseudonymize_enabled": False,
"pseudonymize_labels": {},
"pseudonymize_retention_days": 30
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
enabled: true,
block_threshold: 0.55,
redact_threshold: 0.35,
max_text_length: 32000,
log_events: true,
pre_prompt: '<string>',
pre_prompt_placement: 'prepend',
agentic: {
tool_allowlist: ['<string>'],
tool_denylist: ['<string>'],
max_arg_bytes: 32000,
allow_private_network: false
},
dlp_fail_mode: 'open',
dlp_fail_mode_locked: false,
dlp_host_rule_overrides: [{}],
dlp_protect_unsanctioned: false,
file_scanning_enabled: true,
file_unredactable_action: 'block',
pseudonymize_enabled: false,
pseudonymize_labels: {},
pseudonymize_retention_days: 30
})
};
fetch('https://api.your-blindsight.com/api/runtime-security/config', 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.your-blindsight.com/api/runtime-security/config",
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([
'enabled' => true,
'block_threshold' => 0.55,
'redact_threshold' => 0.35,
'max_text_length' => 32000,
'log_events' => true,
'pre_prompt' => '<string>',
'pre_prompt_placement' => 'prepend',
'agentic' => [
'tool_allowlist' => [
'<string>'
],
'tool_denylist' => [
'<string>'
],
'max_arg_bytes' => 32000,
'allow_private_network' => false
],
'dlp_fail_mode' => 'open',
'dlp_fail_mode_locked' => false,
'dlp_host_rule_overrides' => [
[
]
],
'dlp_protect_unsanctioned' => false,
'file_scanning_enabled' => true,
'file_unredactable_action' => 'block',
'pseudonymize_enabled' => false,
'pseudonymize_labels' => [
],
'pseudonymize_retention_days' => 30
]),
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.your-blindsight.com/api/runtime-security/config"
payload := strings.NewReader("{\n \"enabled\": true,\n \"block_threshold\": 0.55,\n \"redact_threshold\": 0.35,\n \"max_text_length\": 32000,\n \"log_events\": true,\n \"pre_prompt\": \"<string>\",\n \"pre_prompt_placement\": \"prepend\",\n \"agentic\": {\n \"tool_allowlist\": [\n \"<string>\"\n ],\n \"tool_denylist\": [\n \"<string>\"\n ],\n \"max_arg_bytes\": 32000,\n \"allow_private_network\": false\n },\n \"dlp_fail_mode\": \"open\",\n \"dlp_fail_mode_locked\": false,\n \"dlp_host_rule_overrides\": [\n {}\n ],\n \"dlp_protect_unsanctioned\": false,\n \"file_scanning_enabled\": true,\n \"file_unredactable_action\": \"block\",\n \"pseudonymize_enabled\": false,\n \"pseudonymize_labels\": {},\n \"pseudonymize_retention_days\": 30\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.your-blindsight.com/api/runtime-security/config")
.header("Content-Type", "application/json")
.body("{\n \"enabled\": true,\n \"block_threshold\": 0.55,\n \"redact_threshold\": 0.35,\n \"max_text_length\": 32000,\n \"log_events\": true,\n \"pre_prompt\": \"<string>\",\n \"pre_prompt_placement\": \"prepend\",\n \"agentic\": {\n \"tool_allowlist\": [\n \"<string>\"\n ],\n \"tool_denylist\": [\n \"<string>\"\n ],\n \"max_arg_bytes\": 32000,\n \"allow_private_network\": false\n },\n \"dlp_fail_mode\": \"open\",\n \"dlp_fail_mode_locked\": false,\n \"dlp_host_rule_overrides\": [\n {}\n ],\n \"dlp_protect_unsanctioned\": false,\n \"file_scanning_enabled\": true,\n \"file_unredactable_action\": \"block\",\n \"pseudonymize_enabled\": false,\n \"pseudonymize_labels\": {},\n \"pseudonymize_retention_days\": 30\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.your-blindsight.com/api/runtime-security/config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"enabled\": true,\n \"block_threshold\": 0.55,\n \"redact_threshold\": 0.35,\n \"max_text_length\": 32000,\n \"log_events\": true,\n \"pre_prompt\": \"<string>\",\n \"pre_prompt_placement\": \"prepend\",\n \"agentic\": {\n \"tool_allowlist\": [\n \"<string>\"\n ],\n \"tool_denylist\": [\n \"<string>\"\n ],\n \"max_arg_bytes\": 32000,\n \"allow_private_network\": false\n },\n \"dlp_fail_mode\": \"open\",\n \"dlp_fail_mode_locked\": false,\n \"dlp_host_rule_overrides\": [\n {}\n ],\n \"dlp_protect_unsanctioned\": false,\n \"file_scanning_enabled\": true,\n \"file_unredactable_action\": \"block\",\n \"pseudonymize_enabled\": false,\n \"pseudonymize_labels\": {},\n \"pseudonymize_retention_days\": 30\n}"
response = http.request(request)
puts response.read_body{
"enabled": true,
"block_threshold": 0.55,
"redact_threshold": 0.35,
"max_text_length": 32000,
"log_events": true,
"pre_prompt": "<string>",
"pre_prompt_placement": "prepend",
"agentic": {
"tool_allowlist": [
"<string>"
],
"tool_denylist": [
"<string>"
],
"max_arg_bytes": 32000,
"allow_private_network": false
},
"dlp_fail_mode": "open",
"dlp_fail_mode_locked": false,
"dlp_host_rule_overrides": [
{}
],
"dlp_protect_unsanctioned": false,
"file_scanning_enabled": true,
"file_unredactable_action": "block",
"pseudonymize_enabled": false,
"pseudonymize_labels": {},
"pseudonymize_retention_days": 30
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}runtime-security
Update Config
PUT
/
api
/
runtime-security
/
config
Update Config
curl --request PUT \
--url https://api.your-blindsight.com/api/runtime-security/config \
--header 'Content-Type: application/json' \
--data '
{
"enabled": true,
"block_threshold": 0.55,
"redact_threshold": 0.35,
"max_text_length": 32000,
"log_events": true,
"pre_prompt": "<string>",
"pre_prompt_placement": "prepend",
"agentic": {
"tool_allowlist": [
"<string>"
],
"tool_denylist": [
"<string>"
],
"max_arg_bytes": 32000,
"allow_private_network": false
},
"dlp_fail_mode": "open",
"dlp_fail_mode_locked": false,
"dlp_host_rule_overrides": [
{}
],
"dlp_protect_unsanctioned": false,
"file_scanning_enabled": true,
"file_unredactable_action": "block",
"pseudonymize_enabled": false,
"pseudonymize_labels": {},
"pseudonymize_retention_days": 30
}
'import requests
url = "https://api.your-blindsight.com/api/runtime-security/config"
payload = {
"enabled": True,
"block_threshold": 0.55,
"redact_threshold": 0.35,
"max_text_length": 32000,
"log_events": True,
"pre_prompt": "<string>",
"pre_prompt_placement": "prepend",
"agentic": {
"tool_allowlist": ["<string>"],
"tool_denylist": ["<string>"],
"max_arg_bytes": 32000,
"allow_private_network": False
},
"dlp_fail_mode": "open",
"dlp_fail_mode_locked": False,
"dlp_host_rule_overrides": [{}],
"dlp_protect_unsanctioned": False,
"file_scanning_enabled": True,
"file_unredactable_action": "block",
"pseudonymize_enabled": False,
"pseudonymize_labels": {},
"pseudonymize_retention_days": 30
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
enabled: true,
block_threshold: 0.55,
redact_threshold: 0.35,
max_text_length: 32000,
log_events: true,
pre_prompt: '<string>',
pre_prompt_placement: 'prepend',
agentic: {
tool_allowlist: ['<string>'],
tool_denylist: ['<string>'],
max_arg_bytes: 32000,
allow_private_network: false
},
dlp_fail_mode: 'open',
dlp_fail_mode_locked: false,
dlp_host_rule_overrides: [{}],
dlp_protect_unsanctioned: false,
file_scanning_enabled: true,
file_unredactable_action: 'block',
pseudonymize_enabled: false,
pseudonymize_labels: {},
pseudonymize_retention_days: 30
})
};
fetch('https://api.your-blindsight.com/api/runtime-security/config', 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.your-blindsight.com/api/runtime-security/config",
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([
'enabled' => true,
'block_threshold' => 0.55,
'redact_threshold' => 0.35,
'max_text_length' => 32000,
'log_events' => true,
'pre_prompt' => '<string>',
'pre_prompt_placement' => 'prepend',
'agentic' => [
'tool_allowlist' => [
'<string>'
],
'tool_denylist' => [
'<string>'
],
'max_arg_bytes' => 32000,
'allow_private_network' => false
],
'dlp_fail_mode' => 'open',
'dlp_fail_mode_locked' => false,
'dlp_host_rule_overrides' => [
[
]
],
'dlp_protect_unsanctioned' => false,
'file_scanning_enabled' => true,
'file_unredactable_action' => 'block',
'pseudonymize_enabled' => false,
'pseudonymize_labels' => [
],
'pseudonymize_retention_days' => 30
]),
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.your-blindsight.com/api/runtime-security/config"
payload := strings.NewReader("{\n \"enabled\": true,\n \"block_threshold\": 0.55,\n \"redact_threshold\": 0.35,\n \"max_text_length\": 32000,\n \"log_events\": true,\n \"pre_prompt\": \"<string>\",\n \"pre_prompt_placement\": \"prepend\",\n \"agentic\": {\n \"tool_allowlist\": [\n \"<string>\"\n ],\n \"tool_denylist\": [\n \"<string>\"\n ],\n \"max_arg_bytes\": 32000,\n \"allow_private_network\": false\n },\n \"dlp_fail_mode\": \"open\",\n \"dlp_fail_mode_locked\": false,\n \"dlp_host_rule_overrides\": [\n {}\n ],\n \"dlp_protect_unsanctioned\": false,\n \"file_scanning_enabled\": true,\n \"file_unredactable_action\": \"block\",\n \"pseudonymize_enabled\": false,\n \"pseudonymize_labels\": {},\n \"pseudonymize_retention_days\": 30\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.your-blindsight.com/api/runtime-security/config")
.header("Content-Type", "application/json")
.body("{\n \"enabled\": true,\n \"block_threshold\": 0.55,\n \"redact_threshold\": 0.35,\n \"max_text_length\": 32000,\n \"log_events\": true,\n \"pre_prompt\": \"<string>\",\n \"pre_prompt_placement\": \"prepend\",\n \"agentic\": {\n \"tool_allowlist\": [\n \"<string>\"\n ],\n \"tool_denylist\": [\n \"<string>\"\n ],\n \"max_arg_bytes\": 32000,\n \"allow_private_network\": false\n },\n \"dlp_fail_mode\": \"open\",\n \"dlp_fail_mode_locked\": false,\n \"dlp_host_rule_overrides\": [\n {}\n ],\n \"dlp_protect_unsanctioned\": false,\n \"file_scanning_enabled\": true,\n \"file_unredactable_action\": \"block\",\n \"pseudonymize_enabled\": false,\n \"pseudonymize_labels\": {},\n \"pseudonymize_retention_days\": 30\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.your-blindsight.com/api/runtime-security/config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"enabled\": true,\n \"block_threshold\": 0.55,\n \"redact_threshold\": 0.35,\n \"max_text_length\": 32000,\n \"log_events\": true,\n \"pre_prompt\": \"<string>\",\n \"pre_prompt_placement\": \"prepend\",\n \"agentic\": {\n \"tool_allowlist\": [\n \"<string>\"\n ],\n \"tool_denylist\": [\n \"<string>\"\n ],\n \"max_arg_bytes\": 32000,\n \"allow_private_network\": false\n },\n \"dlp_fail_mode\": \"open\",\n \"dlp_fail_mode_locked\": false,\n \"dlp_host_rule_overrides\": [\n {}\n ],\n \"dlp_protect_unsanctioned\": false,\n \"file_scanning_enabled\": true,\n \"file_unredactable_action\": \"block\",\n \"pseudonymize_enabled\": false,\n \"pseudonymize_labels\": {},\n \"pseudonymize_retention_days\": 30\n}"
response = http.request(request)
puts response.read_body{
"enabled": true,
"block_threshold": 0.55,
"redact_threshold": 0.35,
"max_text_length": 32000,
"log_events": true,
"pre_prompt": "<string>",
"pre_prompt_placement": "prepend",
"agentic": {
"tool_allowlist": [
"<string>"
],
"tool_denylist": [
"<string>"
],
"max_arg_bytes": 32000,
"allow_private_network": false
},
"dlp_fail_mode": "open",
"dlp_fail_mode_locked": false,
"dlp_host_rule_overrides": [
{}
],
"dlp_protect_unsanctioned": false,
"file_scanning_enabled": true,
"file_unredactable_action": "block",
"pseudonymize_enabled": false,
"pseudonymize_labels": {},
"pseudonymize_retention_days": 30
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Body
application/json
Required range:
0 <= x <= 1Required range:
0 <= x <= 1Required range:
256 <= x <= 200000Maximum string length:
20000Available options:
prepend, append, sandwich Show child attributes
Show child attributes
Available options:
open, closed Available options:
block, allow Show child attributes
Show child attributes
Required range:
1 <= x <= 365Response
Successful Response
Required range:
0 <= x <= 1Required range:
0 <= x <= 1Required range:
256 <= x <= 200000Maximum string length:
20000Available options:
prepend, append, sandwich Show child attributes
Show child attributes
Available options:
open, closed Available options:
block, allow Show child attributes
Show child attributes
Required range:
1 <= x <= 365
