mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 13:44:47 +02:00
1.2 KiB
1.2 KiB
Nameservers
PUT /repp/v1/registrar/nameservers
Replaces all name servers of current registrar domains.
Request
PUT /repp/v1/registrar/nameservers
Accept: application/json
Content-Type: application/json
Authorization: Basic dGVzdDp0ZXN0dGVzdA==
{
"data": {
"type": "nameserver",
"id": "ns1.example.com",
"attributes": {
"hostname": "new-ns1.example.com",
"ipv4": ["192.0.2.1", "192.0.2.2"],
"ipv6": ["2001:db8::1", "2001:db8::2"]
}
}
}
Response on success
HTTP/1.1 200
Content-Type: application/json
{
"code": 1000,
"message": "Command completed successfully",
"data": {
"type": "nameserver",
"id": "new-ns1.example.com",
"attributes": {
"hostname": "new-ns1.example.com",
"ipv4": [
"192.0.2.1",
"192.0.2.2"
],
"ipv6": [
"2001:db8::1",
"2001:db8::2"
]
},
"affected_domains": [
"private.ee"
]
}
}
Response on failure
HTTP/1.1 400
Content-Type: application/json
{
"code": 2005,
"message": "IPv4 is invalid [ipv4]",
"data": {}
}