PATCH
/dashboard/service/{id}/vps/ips Update IP address
Update DNS name for an IP address.
Parameters
| Name | Type | In | Description |
|---|---|---|---|
id* | integer | path | The service ID of the VPS. |
Request Body
idintegerIP address ID
addressstringIP address
dns_namestringDNS name for the IP
Response
200
403
404
successbooleanRequest
curl -X PATCH "https://api.royalehosting.net/dashboard/service/{id}/vps/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://api.royalehosting.net/dashboard/service/{id}/vps/ips", {
method: "PATCH",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"x-organization-id": "YOUR_ORG_ID",
"Content-Type": "application/json",
},
body: JSON.stringify({
"id": 0,
"address": "string",
"dns_name": "string"
}),
});
const data = await response.json();Request
import requests
response = requests.patch(
"https://api.royalehosting.net/dashboard/service/{id}/vps/ips",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"x-organization-id": "YOUR_ORG_ID",
}
)
print(response.json())Response
{
"success": true
}