Replace a project's prompt injection settings
Authentication
A management key (prefixed mgmt_), created in the dashboard under Settings, API keys, Management keys. Distinct from a regular gateway API key, and never used to call models.
Path parameters
Request
Direct-injection enforcement mode: off, alert, or block
Direct-injection block threshold. Must be at least the organization’s pi_pass_threshold, which is not overridable per project
Indirect-injection enforcement mode, a separate axis from pi_mode
Indirect-injection heuristic-confidence threshold
Indirect-injection embedding-similarity threshold
What to do when the response-side check fires