Skip to main content
POST
Add Classifier Rule From Template

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Authorization
string
header
required

This API uses OAuth2 with the Client Credential flow. Client Credentials must be sent in the BODY, not the headers. For an example of how to implement this, refer to the c1TokenSource.Token() function.

Path Parameters

classifier_id
string
required

Classifier to splice the rule into.

Body

application/json

The AddClassifierRuleFromTemplateRequest message.

templateId
string
required

Template to source the rule from.

insertIndex
integer<int32>

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

params
object

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

ruleIndex
integer<int32>

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

templateVersion
string

Optional; empty resolves the latest version.

Response

200 - application/json

Successful response

The AddClassifierRuleFromTemplateResponse message.

classifier
Classifier · object | null

Classifier is a named, reusable rule cascade.