Update Protection Settings API
PUT /protection
Update the protection settings for the current user.
Query Parameters
Name | Type | Description |
---|---|---|
id |
integer | Record ID |
Request Body (application/json)
{
"protection_level": "medium",
"force_safe_search": true,
"force_tif": true
}
Authentication
Requires Bearer token or API key in query string.
Example Request
curl -X PUT "https://dnsprivacy.org.uk/protection" \
-H "Authorization: Bearer <your-access-token>" \
-H "content-type: application/json" \
-d '{
"protection_level": "medium",
"force_safe_search": true,
"force_tif": true
}'
Response (200 OK)
{
"protection_level": "medium",
"force_safe_search": true,
"force_tif": true
}
Response Schema
Field | Type | Description |
---|---|---|
protection_level |
string | Current protection level (none, low, medium, high, extreme) |
force_safe_search |
boolean | Whether safe search is enforced |
force_tif |
boolean | Whether Threat Intelligence Feed blocking is enabled |
Request Schema
Field | Type | Description | Required |
---|---|---|---|
protection_level |
string | Protection level (none, low, medium, high, extreme) | No |
force_safe_search |
boolean | Whether safe search is enforced | No |
force_tif |
boolean | Whether Threat Intelligence Feed blocking is enabled | No |