Activate Rules
Custom Policies
Activate Rules
Activate extracted rules from a policy import so they run during validation
POST
Activate Rules
Activate rules extracted from a policy import. Once activated, these rules will be enforced during document validation for your account. You can activate all rules or a specific subset.
Activated rules apply automatically on every validation
made with your API key — there is no per-request flag to select them, and
document_category /
document_metadata do not control them (those only select ZeroDrift’s built-in default rules).
Use Deactivate Rules to stop a rule from running.Path Parameters
string
required
The import ID to activate rules from
Request Body
array
Optional list of specific rule IDs to activate. If omitted, all extracted rules are activated.
boolean
Set to
true to overwrite rules that have already been activated from a previous import. Defaults to false.When
overwrite is false (default), if a rule ID already exists the request stops and returns a 409 conflict response. The 409 error body includes an error message that identifies the conflicting rule ID and indicates which rules were successfully activated before the collision. Use overwrite: true to replace existing rules unconditionally.Response
string
Import identifier
string
Updated import status:
activatedinteger
Number of rules successfully activated
array
List of activated rule IDs (prefixed with
cust_<customer_id>_)string
For
409 responses, the rule ID that caused the conflict.
