Skip to main content
POST
/
api
/
policies
/
rules
/
activate
Reactivate Rules
curl --request POST \
  --url https://api.example.com/api/policies/rules/activate \
  --header 'Content-Type: application/json' \
  --data '
{
  "rule_pack_id": "<string>",
  "import_id": "<string>",
  "rule_pack_scenario_id": "<string>",
  "rule_ids": [
    {}
  ]
}
'
{
  "activated_custom_count": 3,
  "activated_custom_rule_ids": [
    "cust_abc123_require_risk_disclosure",
    "cust_abc123_past_performance_disclaimer",
    "cust_abc123_no_specific_client_returns"
  ],
  "activated_default_count": 0,
  "activated_default_rule_ids": [],
  "errors": []
}

Documentation Index

Fetch the complete documentation index at: https://zerodrift.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Reactivate rules that were previously deactivated. Custom rules have their status set back to active. Default rules are removed from your deactivated list.
This endpoint is for re-activating previously deactivated rules. To activate rules from a new policy import for the first time, use POST /api/policies/import//activate instead.

Request Body

rule_pack_id
string
Reactivate all rules in a rule pack (e.g., sec_finra_comms_v2)
import_id
string
Reactivate all custom rules from this import
rule_pack_scenario_id
string
Reactivate all default rules in a scenario
rule_ids
array
Array of rule ID strings to reactivate (custom or default)
At least one field is required. Multiple fields can be combined in a single request.

Response

activated_custom_count
integer
Number of custom rules reactivated
activated_custom_rule_ids
array
List of reactivated custom rule IDs
activated_default_count
integer
Number of default rules reactivated
activated_default_rule_ids
array
List of reactivated default rule IDs
errors
array
List of error messages for rules that could not be activated. Empty array when no errors.
{
  "activated_custom_count": 3,
  "activated_custom_rule_ids": [
    "cust_abc123_require_risk_disclosure",
    "cust_abc123_past_performance_disclaimer",
    "cust_abc123_no_specific_client_returns"
  ],
  "activated_default_count": 0,
  "activated_default_rule_ids": [],
  "errors": []
}

Example

curl -X POST "https://{api-url}/api/policies/rules/activate" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"rule_pack_id": "sec_finra_comms_v2"}'