Skip to main content
POST
Add a rule

Authorizations

x-magnific-api-key
string
header
required

Your Magnific API key. Learn how to obtain an API key

Path Parameters

brand_kit_id
string
required

The brand kit's id.

Body

application/json
directive
string
required

The correction, applied with the highest priority.

Maximum string length: 300
avoid_term
string
required

The term hard-banned from every generation in the rule's scope.

Maximum string length: 200
template_slug
string | null

Scope the rule to one template. Omit for a rule on the whole kit.

Maximum string length: 64
source_creation_id
string | null

The creation_id that prompted the rule. It must be one you can view.

Maximum string length: 64
merge_rule_ids
string[] | null

Ids of equivalent rules in the same scope, from GET /v2/brand-kits/{brand_kit_id}/rules, to merge into this one.

Required array length: 1 - 20 elements
Maximum string length: 64

Response

data
object
required