| Field | Type | Description |
|---|---|---|
| host | String | (Required) Host name, e.g. ns1.webnic.cc |
| ipList | String[] | (Required) Array that contains a string array of IP for a host to be modified / replaced with |
| Field | Type | Description |
|---|---|---|
| pendingOrder | Boolean | Indicates whether it is a pending order |
| nameserver | String | Host name |
| ipList | String[] | Array that contains a string array of updated IP for a host to be modified / replaced with |
| Action | URL |
|---|---|
| Create Host | {{baseUrl}}/domain/v2/host/create |
| Get Host Info | {{baseUrl}}/domain/v2/host/info |
curl --location --request POST 'https://oteapi.webnic.cc/domain/v2/host/modify' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"host": "ns1.testrestreg123.com",
"ipList": [
"1.1.1.2",
"1.1.1.3",
"1.1.1.4",
"1.1.1.1"
]
}'{
"code": "1000",
"message": "Command completed successfully.",
"data": {
"pendingOrder": false,
"nameserver": "ns1.testrestreg123.com",
"ipList": [
"1.1.1.2",
"1.1.1.3",
"1.1.1.4",
"1.1.1.5"
]
}
}