Hanzo AI
OpenapiDns

Replace records

Amends one record of one zone. Only the fields the body carries change; this is the same partial update PATCH performs, not a replacement of the whole…

PUT /v1/dns/zones/{zone}/records/{record}

Addresshttps://api.hanzo.ai/v1/dns/zones/{zone}/records/{record}
MethodPUT
Operationput_dns_zones_by_zone_records_by_record
AuthAuthorization: Bearer $HANZO_API_KEY

Amends one record of one zone. Only the fields the body carries change; this is the same partial update PATCH performs, not a replacement of the whole record. The plane owns the authoritative zone and record store behind every name pointed at Hanzo; this head keeps none of it. The address and the query string ARE the plane's own, relayed verbatim, and the plane's answer comes back unchanged — its status code, its Content-Type, and its Location on a redirect this head never follows.

It travels under the CALLER'S OWN identity and substitutes no service credential, which would collapse tenants: the caller's validated session bearer goes upstream as Authorization and the server-validated org as X-Org-Id, so a caller in one org reaches only that org's zones, exactly as if it had called the plane directly. The upstream host comes only from deployment config, never from the request, so no path can re-target another host.

Fails closed before a byte leaves cloud: no validated principal is 403; an API key is 401, because a pk-/sk- key is not a JWT the OIDC-gated plane can validate and there is no substitute credential to send in its place; a path that normalizes outside /v1/dns, or still carries a percent-escape or a .. after one decode, is 400; an unconfigured plane is 503 and an unreachable one 502.

Request

2 fields.

FieldInTypeRequiredDescription
zonepathstringyes
recordpathstringyes

Response

The document declares no response body for this operation. It answers 200 on success and the platform error shape on failure — see Errors.

Examples

hanzo dns zones records set <zone> <record>

DNS API · All Hanzo APIs · Interactive reference

How is this guide?

On this page