Content Filter Rules
Get all Content Filter Rules in a configuration
GET /api/v4.0/conf/{config}/content-filter-rules HTTP/1.1
Host:
Accept: */*
{
"total": 1,
"items": [
{
"category": "text",
"description": "",
"id": "text",
"msg": "text",
"name": "text",
"operand": "text",
"risk": 1,
"subcategory": "text",
"tags": [
"text"
]
}
]
}
Update an existing set of Content Filter Rules for a configuration
Category of the rule
""
Log message for this rule
Matching domain(s) regex
Risk level of this rule, between 1 (lowest risk) and 5 (highest risk)
Subcategory of the rule
List of tags to apply
[]
PUT /api/v4.0/conf/{config}/content-filter-rules HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 140
[
{
"category": "text",
"description": "",
"id": "text",
"msg": "text",
"name": "text",
"operand": "text",
"risk": 1,
"subcategory": "text",
"tags": [
"text"
]
}
]
{
"message": "Successfully updated entry"
}
Create a complete set of Content Filter Rules for a configuration
Category of the rule
""
Log message for this rule
Matching domain(s) regex
Risk level of this rule, between 1 (lowest risk) and 5 (highest risk)
Subcategory of the rule
List of tags to apply
[]
POST /api/v4.0/conf/{config}/content-filter-rules HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 140
[
{
"category": "text",
"description": "",
"id": "text",
"msg": "text",
"name": "text",
"operand": "text",
"risk": 1,
"subcategory": "text",
"tags": [
"text"
]
}
]
{
"message": "Successfully created entry"
}
Delete all Content Filter Rules in a configuration
DELETE /api/v4.0/conf/{config}/content-filter-rules HTTP/1.1
Host:
Accept: */*
{
"message": "Successfully deleted entry"
}
Get a Content Filter Rule from the specified configuration
GET /api/v4.0/conf/{config}/content-filter-rules/{entry_id} HTTP/1.1
Host:
Accept: */*
{
"category": "text",
"description": "",
"id": "text",
"msg": "text",
"name": "text",
"operand": "text",
"risk": 1,
"subcategory": "text",
"tags": [
"text"
]
}
Update an individual Content Filter Rule within a configuration
Category of the rule
""
Log message for this rule
Matching domain(s) regex
Risk level of this rule, between 1 (lowest risk) and 5 (highest risk)
Subcategory of the rule
List of tags to apply
[]
PUT /api/v4.0/conf/{config}/content-filter-rules/{entry_id} HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 138
{
"category": "text",
"description": "",
"id": "text",
"msg": "text",
"name": "text",
"operand": "text",
"risk": 1,
"subcategory": "text",
"tags": [
"text"
]
}
{
"message": "Successfully updated entry"
}
Create an individual Content Filter Rule within a configuration
Category of the rule
""
Log message for this rule
Matching domain(s) regex
Risk level of this rule, between 1 (lowest risk) and 5 (highest risk)
Subcategory of the rule
List of tags to apply
[]
POST /api/v4.0/conf/{config}/content-filter-rules/{entry_id} HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 138
{
"category": "text",
"description": "",
"id": "text",
"msg": "text",
"name": "text",
"operand": "text",
"risk": 1,
"subcategory": "text",
"tags": [
"text"
]
}
{
"message": "Successfully created entry"
}
Delete an individual Content Filter Rule from the specified configuration
DELETE /api/v4.0/conf/{config}/content-filter-rules/{entry_id} HTTP/1.1
Host:
Accept: */*
{
"message": "Successfully deleted entry"
}
Get list of versions of Content Filter Rules in a configuration
GET /api/v4.0/conf/{config}/content-filter-rules/versions HTTP/1.1
Host:
Accept: */*
{
"total": 1,
"items": [
{
"author": "text",
"email": "[email protected]",
"message": "text",
"date": "2025-06-30T23:02:19.800Z",
"version": "42bcc1282349db1e5791484c3d69420b1d8a8bc1",
"parents": [
"f44073242093228b45bff7eb7a065559fa9b46aa"
]
}
]
}
Get a specific version of a Content Filter Rule set
GET /api/v4.0/conf/{config}/content-filter-rules/versions/{version} HTTP/1.1
Host:
Accept: */*
{
"total": 1,
"items": [
{
"category": "text",
"description": "",
"id": "text",
"msg": "text",
"name": "text",
"operand": "text",
"risk": 1,
"subcategory": "text",
"tags": [
"text"
]
}
]
}
Set a previous Content Filter Rule version to be the current one
PUT /api/v4.0/conf/{config}/content-filter-rules/versions/{version}/revert HTTP/1.1
Host:
Accept: */*
{
"message": "Successfully updated entry"
}
Last updated
Was this helpful?