Documentation menu

Update domain record

PATCHhttps://api.instacloud.com/orgs/{orgId}/domains/{domainName}/records/{recordId}

Token scope: account · org — read-only tokens refused (not a GET).

Change a DNS record; a field left out keeps its value. A managed record is refused.

Parameters

NameInTypeRequiredDescription
orgIdpathstringyes
domainNamepathstringyes
recordIdpathstringyesthe id from the records list

Request body

application/json

FieldTypeRequiredDescription
type"A" | "AAAA" | "ANAME" | "CNAME" | "MX" | "NS" | "SRV" | "TXT"no
hoststringnorelative to the domain: "@" for the domain itself, "api" for api.<domain>; the full hostname is accepted too
answerstringnoan IPv4 (A) or IPv6 (AAAA) address; a hostname (CNAME, ANAME, NS, MX); "<weight> <port> <target>" (SRV); text (TXT). "." is the null MX and the no-service SRV target
ttlintegernoseconds
priorityintegernorequired for MX and SRV, refused for every other type

Responses

200

Default Response

FieldTypeRequiredDescription
idintegeryesthe registrar's id for the record; the handle every write takes
type"A" | "AAAA" | "ANAME" | "CNAME" | "MX" | "NS" | "SRV" | "TXT"yes
hoststringyesrelative to the domain: "@" is the domain itself, "api" is api.<domain>
fqdnstringyes
answerstringyes
ttlintegeryesseconds
priorityintegernoMX and SRV only
managedbooleanyespublished by InstaCloud: read-only while `hostname` names the attached hostname it serves; without one, a leftover no hostname claims, which may be deleted
hostnamestringnothe attached hostname a managed record serves

400

the merged record does not fit its type, the zone cannot hold it, or the registrar refused it — with its own sentence

FieldTypeRequiredDescription
errorstringyes

404

Default Response

FieldTypeRequiredDescription
errorstringyes

409

the record is managed, or the host it moves to serves a compute service (for an NS: or has one beneath it)

FieldTypeRequiredDescription
errorstringyes

502

Default Response

FieldTypeRequiredDescription
errorstringyes

503

Default Response

FieldTypeRequiredDescription
errorstringyes

View as Markdown