From e144eac2afbf20a3e9ec9537625c4757ae17b58f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20=22Pisco=22=20Fernandes?= Date: Thu, 5 Jun 2025 15:02:21 +0000 Subject: [PATCH] TUN-9171: Use `is_default_network` instead of `is_default` to create vnet's ## Summary The is_default field in the request body of the POST /virtual_networks endpoint has been deprecated and should no longer be used. Clients should use the `is_default_network` field instead for setting the default virtual network. Closes TUN-9171 --- cfapi/virtual_network.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cfapi/virtual_network.go b/cfapi/virtual_network.go index fce5d504..e8b5c187 100644 --- a/cfapi/virtual_network.go +++ b/cfapi/virtual_network.go @@ -16,7 +16,7 @@ import ( type NewVirtualNetwork struct { Name string `json:"name"` Comment string `json:"comment"` - IsDefault bool `json:"is_default"` + IsDefault bool `json:"is_default_network"` } type VirtualNetwork struct {