Skip to content

Delete a glue record

DELETE /api/v2/domains/{id}/glue-records/{hostname}

Deletes the glue record for one of the domain’s own nameservers at the registry. A glue record that is currently used as a nameserver by any domain returns 409 glue_record_in_use. Move those domains to other nameservers with POST /api/v2/domains/{id}/nameservers first. Deleting a glue record does not change the domain nameserver set or any DNS zone records. A hostname without a glue record also returns 204.

Authentication: An API key with the scope write:domains. About keys and scopes

Request

Path parameters

hostnamestringrequired
The glue record hostname from glueRecords[].hostname, for example ns1.example.com. URL-encode it if your client does not.
idstringrequired
The domain ID. From GET /api/v2/domains.

Example

DELETE /api/v2/domains/{id}/glue-records/{hostname}
curl -X DELETE "https://cloud.hostup.se/api/v2/domains/dom_01hxa3b4c5d6e7f8g9h0j1k2m3/glue-records/ns1.example.com" \
-H "Authorization: Bearer $HOSTUP_API_KEY"

Responses

204 The glue record was deleted or did not exist. No response body.

Errors

Errors are Problem Details with a stable code. Branch on the code, not on the text.

400Invalid request. The response body is an RFC 7807 Problem Details document.
401Unauthorized. Authentication is required.
403Forbidden. The caller lacks a required scope or does not own the resource.
404Not found. The resource does not exist or is not owned by the caller; code is domain_not_found.
409The hostname is still used as a nameserver. Change the nameservers that point to it first.
429Rate limited. Retry after the limit resets. 429 responses include Retry-After seconds plus X-RateLimit-* headers.
500Internal error. Retry later or contact support if the issue persists.