/profiles/{profile}. Anyone with access to the profile can read a section with GET. Owners and editors can update it with PATCH. A successful read returns the section in data, and a successful update returns 204 No Content.
For example, this request turns on Cache Boost and preserves the other performance settings.
Security
Use/security to read or update these boolean protections. Set a field to true to enable it.
For manual blocking of a particular top-level domain, add it to the profile’s Denylist.
The legacy fields
idnHomographs, typosquatting, and dga always read as false. The API accepts and ignores writes to them. For the legacy tlds collection, see Manual TLD compatibility.
Privacy and parental controls
Select blocklists, devices, services, or categories
To find available IDs, use the catalog path on its own, such asGET /privacy/blocklists. To manage a profile’s selections, prefix the path with /profiles/{profile}.
Use
GET to read the selected entries. To add one, POST an object to the collection. To remove one, DELETE its /{id} path. Successful writes return 204 No Content.
To replace the entire selection, PUT an array to the collection. Sending the array in a profile or section PATCH has the same effect. An empty array clears the selection.
For example, add the NextDNS Ads & Trackers Blocklist while keeping every other selected blocklist.
active defaults to true and recreation defaults to false. Setting recreation to true suspends that entry’s blocking rule during the profile’s recreation time. You can change an entry with PATCH /parentalControl/services/{id} or PATCH /parentalControl/categories/{id}. Send both booleans to preserve your intended state, because the API applies defaults to omitted fields on these updates.
Set recreation time
Send arecreation object to PATCH /profiles/{profile}/parentalControl. Specify an IANA time zone and the full weekly schedule, using lowercase weekday names and local times in HH:MM:SS format. Use half-hour increments. An end time of 00:00:00 means midnight at the end of the selected day. For example, this schedule sets recreation time on Saturdays from 9 a.m. to noon in Paris.
{"recreation":{"times":{}}} clears the schedule and resets the recreation flag on all selected services and categories.
Logging
Read or update log settings at/settings/logs.
For example, send
{"drop":{"ip":true},"retention":604800} to omit client IPs and retain logs for one week. You can also read or update ip and domain directly at /settings/logs/drop.
Performance and other settings
Use
settings.csam in profile requests. The legacy security.csam field reads and writes the same setting. If a profile POST or PATCH supplies both fields, their values must match. Conflicting values return HTTP 400 with error code conflictingCsamValues.