Update WireGuard client
update_clientUpdate a WireGuard client by changing only specified settings (name, DNS, MTU, enabled, expiry, IPs, keepalive) while preserving all other configuration.
Instructions
Update a WireGuard client. Only the provided fields are changed; all other settings are preserved.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dns | No | DNS servers for the client, or null to use the server default | |
| mtu | No | MTU for the client | |
| name | No | New display name | |
| enabled | No | Enable or disable the client | |
| clientId | Yes | Numeric ID of the client (see list_clients) | |
| expiresAt | No | Expiry date as ISO string, or null to remove the expiry | |
| allowedIps | No | CIDRs routed through the tunnel on the client side, or null to use the server default | |
| ipv4Address | No | IPv4 address of the client | |
| ipv6Address | No | IPv6 address of the client | |
| serverAllowedIps | No | Additional CIDRs the server routes to this client | |
| persistentKeepalive | No | Persistent keepalive interval in seconds (0 = off) |