Compliance

(Re)generate the rules of a framework

Changed on

Starts rule generation and returns at once with the framework in rules_status generating; the model call runs in the background and replaces the framework's rules, edits included, when it succeeds. With the external decider, rules_status is waiting and the derivation is offered as a task. A generation already running for the framework is not started twice.

post/v1/compliance/frameworks/{documentId}/rules/generate

Request

  • Base URL
    https://api.talonic.com
  • Auth
    HTTP bearer

Path parameters

documentId, string uuid required

Response

The framework view without its extracted items.

ComplianceFramework required
document_id, string uuid
status, 'pending' | 'processing' | 'waiting' | 'completed' | 'error'

The reading of the framework's requirements. waiting: the reading waits for the workspace's own agent (decider external). A processing row older than the staleness limit reads error.

active, boolean

Whether the framework's rules are in force (ON). Off by default.

framework_name, string nullable
rule_count, integer

Items extracted from the framework (its captured fields), not the stored rules.

error, string nullable
extracted_at, string date-time nullable
updated_at, string date-time
rules_status, 'none' | 'generating' | 'waiting' | 'ready' | 'error'

Rule generation: waiting means it waits for the workspace's own agent.

rules_error, string nullable
rules_decided_by, string nullable

The external agent's label when it derived the rules.

decided_by, string nullable

The external agent's label when it read the requirements.

generated_rule_count, integer

Rules currently stored (generated, then edited or deleted by people).

summary, string nullable

One or two sentences describing the document. Null when the view is returned after a change.

Changes