From 78bbc88159eb57aa5dea068fb45b285c22bef861 Mon Sep 17 00:00:00 2001 From: appkins Date: Wed, 19 Feb 2025 01:25:18 -0600 Subject: [PATCH] Fix cmd path --- unifi/cmd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unifi/cmd.go b/unifi/cmd.go index 87a80a6..e9912c4 100644 --- a/unifi/cmd.go +++ b/unifi/cmd.go @@ -22,7 +22,7 @@ type Cmd struct { func (c *Client) ExecuteCmd(ctx context.Context, site string, mgr string, cmd Cmd) (any, error) { var respBody struct{} - err := c.do(ctx, "POST", fmt.Sprintf("%s/site/%s/cmd/%s", c.apiV2Path, site, mgr), &cmd, &respBody) + err := c.do(ctx, "POST", fmt.Sprintf("%s/s/%s/cmd/%s", c.apiPath, site, mgr), &cmd, &respBody) if err != nil { return nil, err }