v1

latestOpenAPI 3.1.02026-08-04197263.3 KB

Import Policy

Import a single policy from JSON.

IDs from the import are ignored; a new ID will be generated. Requires admin role.

Docs: Guide | API Reference

post/policies/import

Request body

Response

Successful Response

idstring required
namestring required
descriptionstring nullable
rulesobject required
rule_modesobject
modestring nullable
pre_violation_thresholdnumber nullable
pre_jb_thresholdnumber nullable
post_violation_thresholdnumber nullable
post_violation_jb_thresholdnumber nullable
scanners_configobject nullable
block_messagestring nullable
is_presetboolean
created_atstring date-time nullable
updated_atstring date-time nullable