Skip to content

Update a specific AI filter policy

PUT
/api/v3/organizations/{organisation}/ai/filter-policies/{policyId}
curl --request PUT \
--url https://dashboard.quantcdn.io/api/v3/organizations/example/ai/filter-policies/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "description": "example", "enabled": true, "rules": [ { "name": "example", "match": { "type": "word", "values": [ "example" ], "pattern": "example" }, "action": "BLOCK", "applyTo": "input" } ] }'
organisation
required
string
policyId
required
string
Media typeapplication/json
object
name
string
<= 255 characters
description
string
nullable <= 1000 characters
enabled
boolean
rules
Array<object>
>= 1 items <= 100 items
object
name
string
match

Match criteria

object
type
string
Allowed values: word regex
values

Required when type=word

Array<string>
pattern

Required when type=regex

string
<= 500 characters
action
string
Allowed values: BLOCK REDACT
applyTo
string
Allowed values: input output both

Filter policy updated successfully

Media typeapplication/json
object
Examplegenerated
{}

Validation error

Failed to update filter policy