Search + K

Command Palette

Search for a command to run...

Sign In

Set Account Custom Nameserver Related Zone Metadata

Deprecated
PUT /zones/{zone_id}/custom_ns
Copy endpoint
https://api.cloudflare.com/client/v4

Set metadata for account-level custom nameservers on a zone.

If you would like new zones in the account to use account custom nameservers by default, use PUT /accounts/:identifier to set the account setting use_account_custom_ns_by_default to true.

Deprecated in favor of Update DNS Settings.

Parameters

path Path Parameters

Name Type
zone_id required
type DnsCustomNameserversSchemasIdentifier = string

Request Body

application/json required
interface DnsCustomNameserversZoneMetadata {
enabled?: boolean;
ns_set?: number;
}

Responses

200 application/json

Set Account Custom Nameserver Related Zone Metadata response

type DnsCustomNameserversSchemasEmptyResponse = never

Client Errors

4XX application/json

Set Account Custom Nameserver Related Zone Metadata response failure

never