Docs: REPP registrar nameserver replacement

This commit is contained in:
Karl Erik Õunapuu 2020-10-26 14:55:30 +02:00
parent 909460668d
commit d2d7bfb386
No known key found for this signature in database
GPG key ID: C9DD647298A34764

View file

@ -10,14 +10,14 @@ Accept: application/json
Content-Type: application/json Content-Type: application/json
Authorization: Basic dGVzdDp0ZXN0dGVzdA== Authorization: Basic dGVzdDp0ZXN0dGVzdA==
{ {
"data":{ "data": {
"type": "nameserver", "type": "nameserver",
"id": "ns1.example.com", "id": "ns1.example.com",
"attributes": { "attributes": {
"hostname": "new-ns1.example.com", "hostname": "new-ns1.example.com",
"ipv4": ["192.0.2.1", "192.0.2.2"], "ipv4": ["192.0.2.1", "192.0.2.2"],
"ipv6": ["2001:db8::1", "2001:db8::2"] "ipv6": ["2001:db8::1", "2001:db8::2"]
}, }
} }
} }
``` ```
@ -27,16 +27,26 @@ Authorization: Basic dGVzdDp0ZXN0dGVzdA==
HTTP/1.1 200 HTTP/1.1 200
Content-Type: application/json Content-Type: application/json
{ {
"data":{ "code": 1000,
"message": "Command completed successfully",
"data": {
"type": "nameserver", "type": "nameserver",
"id": "new-ns1.example.com", "id": "new-ns1.example.com",
"attributes": { "attributes": {
"hostname": "new-ns1.example.com", "hostname": "new-ns1.example.com",
"ipv4": ["192.0.2.1", "192.0.2.2"], "ipv4": [
"ipv6": ["2001:db8::1", "2001:db8::2"] "192.0.2.1",
} "192.0.2.2"
],
"ipv6": [
"2001:db8::1",
"2001:db8::2"
]
}, },
"affected_domains": ["example.com", "example.org"] "affected_domains": [
"private.ee"
]
}
} }
``` ```
@ -44,14 +54,10 @@ Content-Type: application/json
``` ```
HTTP/1.1 400 HTTP/1.1 400
Content-Type: application/json Content-Type: application/json
{ {
"errors":[ "code": 2005,
{ "message": "IPv4 is invalid [ipv4]",
"title":"ns1.example.com does not exist" "data": {}
},
{
"title":"192.0.2.1 is not a valid IPv4 address"
}
]
} }
``` ```