From 8bf77cef86ebf2e81ff478589c4a84035c76ffd8 Mon Sep 17 00:00:00 2001 From: Eduardo Silva Date: Tue, 10 Mar 2026 15:05:43 -0300 Subject: [PATCH] add allowed_ip parameter to peer creation API documentation. remove parameter for allowed_ip_netmask --- api_v2/views_api.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api_v2/views_api.py b/api_v2/views_api.py index 41dd0fe..cc8920c 100644 --- a/api_v2/views_api.py +++ b/api_v2/views_api.py @@ -183,6 +183,9 @@ def _get_wireguard_instance(instance_name: str) -> Optional[WireGuardInstance]: {"name": "routing_template_uuid", "in": "json", "type": "string", "required": False, "description": "Routing template UUID (optional). Must belong to the same WireGuard instance."}, + {"name": "allowed_ip", "in": "json", "type": "string", "required": False, + "example": "10.188.0.15", "description": "Optional peer main IP address. It must be an available IP within the instance subnet. If omitted, the system will automatically assign the next available IP address."}, + {"name": "announced_networks", "in": "json", "type": "list[string]", "required": False, "example": ["10.10.0.0/24"], "description": "Server announced networks (priority>=1). Will be synced."}, {"name": "client_routes", "in": "json", "type": "list[string]", "required": False,