Create a DynDNS configuration
Review ownership before reserving A/AAAA record slots.
Select a domain
GET /api/v1/dyndns/domains requires configure. Select an enabled domain by numeric id, not hostname/customer number. Current ownership and token scope are checked.
Preview and confirm
Supply a label of 1–100 characters, 1–50 names, at least one type (A or AAAA) and an integer interval from 60 to 86400 seconds. Preview defaults to 300 seconds. Names are normalised by the DNS validator; wildcards are unsupported.
curl --fail-with-body --user "$NX_USERNAME:$NX_TOKEN" \
-H 'Content-Type: application/json' \
--data '{"domain_id":42,"label":"Office router","names":["home"],"types":["A","AAAA"],"interval_seconds":300}' \
"$NX_URL/api/v1/dyndns/preview"
{"preview_id":"0123456789abcdef0123456789abcdef","existing":[],"names":["home"],"types":["A","AAAA"]}
Review every record in existing. The principal-bound preview expires after 15 minutes. Confirmation rechecks the live-zone fingerprint, ownership and pending publications.
curl --fail-with-body --user "$NX_USERNAME:$NX_TOKEN" \
-H 'Content-Type: application/json' \
--data '{"preview_id":"REPLACE_WITH_RETURNED_PREVIEW_ID"}' \
"$NX_URL/api/v1/dyndns/confirm"
Success returns 201 with configuration_id and revision. It reserves ownership; it does not publish a new IP. Continue with updates.
Conflicts and removal
CNAMEs, protected/other-service records, duplicate bindings, changed DNS or unresolved publications can produce 409. Resolve the cause and make a new preview, rather than repeatedly confirming an expired one.
GET /api/v1/dyndns/configurations lists active accessible configurations, revision and latest publication. Its names_json/types_json fields are JSON-encoded strings, not arrays. POST /api/v1/dyndns/detach with configuration_id requires configure and returns {"status":"detached"}. Detach retains live records and releases ownership; unresolved work can block it.