Skip to main content
PATCH
Update Project Settings

Authorizations

X-API-Key
string
header
required

PromptGuard API key for developer endpoints. Keys start with pg_live_ and are created in the dashboard.

Headers

x-api-key
string | null
PromptGuard-Approval
string | null

The approval_id of an approval_required refusal, once your user has approved it. Send the same method, path, query and body.

Maximum string length: 64

Path Parameters

project_id
string
required

Body

application/json

The settings to change. One left out stays as it is.

name
string | null
Required string length: 1 - 100
description
string | null
Maximum string length: 500
fail_mode
enum<string> | null
Available options:
open,
closed
use_case
string | null
strictness_level
enum<string> | null
Available options:
strict,
moderate,
permissive
zero_retention
boolean | null
enforcement_mode
enum<string> | null
Available options:
enforce,
monitor
spotlight_mode
enum<string> | null
Available options:
delimit,
datamark,
datamark_delimit
agent_policy_enforced
boolean | null

Response

Successful Response

id
string
required
name
string
required
description
string | null
required
fail_mode
string
required
use_case
string
required
strictness_level
string
required
zero_retention
boolean
required
enforcement_mode
string
required
spotlight_mode
string | null
required
agent_policy_enforced
boolean
required