Skip to main content
PATCH

Authorizations

apikey
string
header
required

Headers

X-Enkrypt-Scan
string
required

The scan's saved name, within the project your API key belongs to. Letters, numbers, spaces and _ & - . /; must start and end with a letter or a number; at most 64 characters.

Example:

"ChatGPT Enterprise"

Body

application/json

Body of Modify Compliance Scan: any subset of the mutable fields. Only the keys you send are written, so a status you omit cannot overwrite a needs_reconnect the scanner just set. An empty body is a 400, and provider, workspace_id and scan_id are rejected outright.

scan_name
string

Rename the scan. Must stay unique in the project; the new name is what X-Enkrypt-Scan carries afterwards.

Maximum string length: 64
guardrails_name
string

Evaluate subsequent messages against a different saved guardrail.

event_types
enum<string>[]
Minimum array length: 1
Available options:
CONVERSATION_MESSAGE,
CODEX_LOG,
APP_LOG,
CUSTOM_AGENTS_LOG,
CHATGPT_PLUGIN_SPREADSHEET
cursor_end_time
string<date-time>

Move the cursor. Setting it back re-reads that period, as far as the provider's 30-day retention allows.

status
enum<string>

needs_reconnect is not accepted — only the scanner writes it.

Available options:
active,
paused,
disabled
list_interval_s
integer
Required range: x >= 1
pending_cap
integer
Required range: x >= 1
compliance_api_key
string<password>
write-only

Replace the stored key. This is how a scan in needs_reconnect recovers.

Response

Scan updated. warning is present only when the record was saved but the scanning service could not be reloaded.

A write that returns the resulting scan. warning appears only when the record was saved but the scanning service could not be reached — the write stands and the scanner reconciles on its next pass.

scan
ComplianceScan · object

One compliance scan. compliance_api_key is deliberately absent — no endpoint returns the stored key, in plaintext or masked.

warning
string

Present only when the record was written but the scanning service did not respond.