curl -X PATCH "https://api.nextdns.io/profiles/$PROFILE_ID" \
-H "X-Api-Key: $NEXTDNS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"settings":{"logs":{"enabled":false}}}'
Profiles
Update a profile
Change one or more settings in an existing profile.
PATCH
/
profiles
/
{profile}
curl -X PATCH "https://api.nextdns.io/profiles/$PROFILE_ID" \
-H "X-Api-Key: $NEXTDNS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"settings":{"logs":{"enabled":false}}}'
Owners and editors can change profile settings. Only the owner can set or clear
name.
curl -X PATCH "https://api.nextdns.io/profiles/$PROFILE_ID" \
-H "X-Api-Key: $NEXTDNS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"settings":{"logs":{"enabled":false}}}'
Path parameter
Request body
Send only the fields you want to change. The example setssettings.logs.enabled and preserves the profile’s log retention and storage location.
Supplying a list or recreation time schedule replaces its contents. To add, update, or remove one domain while preserving the other entries, use the Allowlist and Denylist endpoints.
A name of 1 to 255 characters, unique among the owner’s profiles. Use
null for an unnamed profile.Set
linkedIp.ddns to a dynamic DNS hostname. Its first IPv4 address must match the IPv4 address making the request. Use null to clear the hostname. See DNS setup and Linked IP.DNS threat protections, such as
googleSafeBrowsing. See Security.Blocklist selections, native tracking protection, and tracker settings. See Privacy and parental controls.
Service and category rules, SafeSearch, and the recreation time schedule.
Domains to block. Each entry takes a domain in
id and an optional active flag that defaults to true.Domains to allow. Entries have the same fields as the Denylist. See Allowlist and Denylist.
Logging, the block page, and performance and other settings.
Response
Success returns 204 No Content. An editor who includesname, or a viewer who attempts any update, receives 403 with the code insufficientRole. If the owner already has another profile with the requested name, the API returns 200 with {"errors":[{"code":"duplicate"}]}. See Responses and errors.