Skip to main content
PUT
Update workspace settings

Authorizations

X-API-Key
string
header
required

Blindsight workspace API key (ak_live_…). Use this header for the scan API and the OpenAI proxy routes. The required permission scope is runtime_security.scan for scan endpoints, runtime_security.view for read-only analytics, and runtime_security.manage for configuration changes.

Body

application/json
enabled
boolean
default:true
injection_model
string

Hugging Face model id for the injection classifier.

block_threshold
number
default:0.85
Required range: 0 <= x <= 1
redact_threshold
number
default:0.55
Required range: 0 <= x <= 1
max_text_length
integer
default:32000
Required range: 256 <= x <= 200000
log_events
boolean
default:true
pre_prompt
string | null
Maximum string length: 20000
pre_prompt_placement
enum<string>
default:prepend
Available options:
prepend,
append,
sandwich
agentic
object

Response

New settings (after persistence)

enabled
boolean
default:true
injection_model
string

Hugging Face model id for the injection classifier.

block_threshold
number
default:0.85
Required range: 0 <= x <= 1
redact_threshold
number
default:0.55
Required range: 0 <= x <= 1
max_text_length
integer
default:32000
Required range: 256 <= x <= 200000
log_events
boolean
default:true
pre_prompt
string | null
Maximum string length: 20000
pre_prompt_placement
enum<string>
default:prepend
Available options:
prepend,
append,
sandwich
agentic
object