Classifier Templates

Add Classifier Rule From Template

Changed on

Add inserts a template rule into a tenant-owned classifier at insert_index. It resolves only that rule's required tool gates and hooks, rewrites their references, assigns a new rule ID, and records the source template. Grant-policy parameters are validated only for the added rule.

post/api/v1/classifiers/{classifier_id}/rules/from_template

Request

  • Base URL
    https://example.conductor.one
  • URL
    https://example.conductor.one/api/v1/classifiers/{classifier_id}/rules/from_template
  • Auth
    HTTP bearer and OAuth 2
    Client credentials
    Token URL: /auth/v1/token

Path parameters

classifier_idstring required

Classifier to splice the rule into.

Request body

insertIndexinteger

Position in the target cascade to insert before. Pass the current rule count to append. Values past the end append.

paramsobject

Bind-time param values for the spliced rule's grant gates, keyed by TemplateParam.key (e.g. grant_policy_id).

ruleIndexinteger

Which rule in the template to add; defaults to 0 (the first/only rule).

templateIdstring required

Template to source the rule from.

templateVersionstring

Optional; empty resolves the latest version.

Response

Successful response

Changes