Update a server public IP

Set or remove the reverse DNS name of one of the server's public IP addresses. DNS can show the old name for a while after the change.

PATCH https://{availability_zone}.betterstackcloud.com/v1/servers/{server_id}/ips/{id}
server_id string required

The ID of the server the address is on.

id string required

The ID of the server public IP to update.

Authorization string required

Bearer $TOKEN

Content-Type string

application/json

ptr_record string or null

The reverse DNS name for the address. When the address is a reserved IP, this name replaces the reserved IP's own reverse DNS name. Send null or an empty string to remove it.

200 OK
{
  "id": "example",
  "ip": "example",
  "type": "ipv4",
  "device_name": "Example server public IP",
  "ptr_record": "example"
}

Returns the updated server public IP.

id string

The ID of the address on this server, a UUID.

ip string

The IP address.

type string

Whether it's an IPv4 or IPv6 address. Possible values: ipv4, ipv6.

device_name string or null

The network interface on the server that has the address, such as eth0.

ptr_record string or null

The reverse DNS name for the address. When the address is a reserved IP, this name replaces the reserved IP's own reverse DNS name.