PUT
Enable admission control, choose what it refuses, and how it fails

Authorizations

Authorization
string
header
required

Authorization: Bearer twk_<prefix>_<secret>.

The prefix is public and safe to log: it is what identifies which credential leaked. The secret is never logged, never returned after creation, and stored only as a SHA-256 hash.

Path Parameters

id
string<uuid>
required

Body

application/json
enabled
boolean
failure_mode
enum<string>
Available options:
open,
closed
mode
enum<string>
Available options:
audit,
warn,
deny
drift_prevention
boolean

Response

The settings now in force, with a note restating what the failure mode means.