From ac8d0c56593e4ae8ce1ac35638566571c569f2c7 Mon Sep 17 00:00:00 2001 From: Kurt McAlpine Date: Fri, 2 Apr 2021 17:51:35 +1300 Subject: [PATCH] Set key to mgmt for updateSettingMgmt api --- unifi/setting_mgmt.go | 1 + 1 file changed, 1 insertion(+) diff --git a/unifi/setting_mgmt.go b/unifi/setting_mgmt.go index 20d8405..f93ff52 100644 --- a/unifi/setting_mgmt.go +++ b/unifi/setting_mgmt.go @@ -9,5 +9,6 @@ func (c *Client) GetSettingMgmt(ctx context.Context, site string) (*SettingMgmt, } func (c *Client) UpdateSettingMgmt(ctx context.Context, site string, d *SettingMgmt) (*SettingMgmt, error) { + d.Key = "mgmt" return c.updateSettingMgmt(ctx, site, d) }