PATCH
/ips Update IP information
Updates the DNS name for a specified IP address.
Request Body
addressstringRequiredThe IP address to update (required)
dns_namestringThe new DNS name for the IP address
Response
200
400
successbooleandataobjectaddressstringdns_namestringfamilyobjectvalueintegerRequest
curl -X PATCH "https://shield.royalehosting.net/api/v2/ips" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "x-organization-id: YOUR_ORG_ID" \
-H "Content-Type: application/json" \
-d '{}'Request
const response = await fetch("https://shield.royalehosting.net/api/v2/ips", {
method: "PATCH",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"x-organization-id": "YOUR_ORG_ID",
"Content-Type": "application/json",
},
body: JSON.stringify({
"address": "45.90.13.24/24",
"dns_name": "hosted-by.royalehosting.net"
}),
});
const data = await response.json();Request
import requests
response = requests.patch(
"https://shield.royalehosting.net/api/v2/ips",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"x-organization-id": "YOUR_ORG_ID",
}
)
print(response.json())Response
{
"success": true,
"data": {
"address": "1.1.1.1/24",
"dns_name": "hosted-by.royalehosting.net",
"family": {
"value": 4
}
}
}