Add a rewrite
Send a lowercase ASCII hostname inname and the desired answer in content. Use Punycode for internationalized names. NextDNS creates an A record for an IPv4 address, an AAAA record for an IPv6 address, or a CNAME for a hostname.
200 with an error code of conflict.
Each profile supports up to 500 rewrites. Going over the limit returns HTTP 400 with {"code":"listLimitExceeded","list":"rewrites","limit":500} in the errors array.
List or remove rewrites
GET /profiles/{profile}/rewrites returns a data array containing all the profile’s rewrites.
REWRITE_ID to the id from the list or creation response. A successful deletion returns 204 No Content. An unknown ID returns 404 Not Found.