POST
Add an immutable policy version

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
rules
object[]
required
Required array length: 1 - 50 elements
suppression
enum<string>
default:warn

What accepted risk does. The default is warn: suppression must not automatically equal PASS, or the fastest route to a green build is to accept the risk.

Available options:
warn,
ignore,
enforce
note
string

Why this version exists.

Response

The new version.

The response is of type object.