> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nextdns.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Update a profile

> Change one or more settings in an existing profile.

Owners and editors can change profile settings. Only the owner can set or clear `name`.

```bash cURL theme={null}
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

**profile** `string` *required*

ID of a profile you own or can edit.

## Request body

Send only the fields you want to change. The example sets `settings.logs.enabled` and preserves the profile's log retention and storage location.

Supplying a list or [recreation time schedule](https://docs.nextdns.io/api-reference/profiles/settings.md#set-recreation-time) replaces its contents. To add, update, or remove one domain while preserving the other entries, use the [Allowlist and Denylist endpoints](https://docs.nextdns.io/api-reference/profiles/domain-lists.md).

**name** `string`

A name of 1 to 255 characters, unique among the owner's profiles. Use `null` for an unnamed profile.

**setup** `object`

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](https://docs.nextdns.io/api-reference/profiles/setup.md).

**security** `object`

DNS threat protections, such as `googleSafeBrowsing`. See [Security](https://docs.nextdns.io/api-reference/profiles/settings.md#security).

**privacy** `object`

Blocklist selections, native tracking protection, and tracker settings. See [Privacy and parental controls](https://docs.nextdns.io/api-reference/profiles/settings.md#privacy-and-parental-controls).

**parentalControl** `object`

Service and category rules, SafeSearch, and the [recreation time schedule](https://docs.nextdns.io/api-reference/profiles/settings.md#set-recreation-time).

**denylist** `object[]`

Domains to block. Each entry takes a domain in `id` and an optional `active` flag that defaults to `true`.

**allowlist** `object[]`

Domains to allow. Entries have the same fields as the Denylist. See [Allowlist and Denylist](https://docs.nextdns.io/api-reference/profiles/domain-lists.md).

**settings** `object`

[Logging](https://docs.nextdns.io/api-reference/profiles/settings.md#logging), the block page, and [performance and other settings](https://docs.nextdns.io/api-reference/profiles/settings.md#performance-and-other-settings).

## Response

Success returns **204 No Content**. An editor who includes `name`, 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](https://docs.nextdns.io/api-reference/responses.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.