Edit a Framework's Rules
Read one compliance framework, read its rules again from its document, and add, edit or remove rules by hand, through the /v1/compliance API.
Read one framework with its rules, read the rules again from its document, or edit them by hand: add a rule, change one, take one out. The writes need apps:compliance:write; reading again answers 409 while the app is switched off.
Endpoints
GET
/v1/compliance/frameworks/{documentId}Parameters
documentId*stringPath. The framework's document id.
PATCH
/v1/compliance/frameworks/{documentId}Parameters
documentId*stringPath. The framework's document id.
Body
active*booleanON or OFF.
POST
/v1/compliance/frameworks/{documentId}/extractParameters
documentId*stringPath. The framework's document id.
POST
/v1/compliance/frameworks/{documentId}/rulesParameters
documentId*stringPath. The framework's document id.
Body
text*stringThe rule, at most 2,000 characters.
obligationstringHow binding the rule is.
sectionstringWhere in the framework it stands.
applies_tostringWhat it applies to.
conditionstringWhen it applies.
thresholdstringThe threshold it names.
testablebooleanWhether a document can be checked against it.
PATCH
/v1/compliance/rules/{ruleId}Parameters
ruleId*stringPath. The rule id.
Body
textstringThe rule.
obligationstringHow binding it is.
sectionstringWhere it stands.
applies_tostringWhat it applies to.
conditionstringWhen it applies.
thresholdstringThe threshold.
testablebooleanWhether it can be checked.
DELETE
/v1/compliance/rules/{ruleId}Parameters
ruleId*stringPath. The rule id.