From 29e9e4da8d827905a172dfcdcc58110a0c90c62c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milo=C5=A1=20Jovanovi=C4=87?= Date: Thu, 24 Sep 2026 20:49:57 -0700 Subject: [PATCH] fix body --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.go b/client.go index 23cb5e0..327f66a 100644 --- a/client.go +++ b/client.go @@ -217,7 +217,7 @@ func (c *Client) AssignAgent(ctx context.Context, userID, agentID int64) error { return err } - _, err = c.do(ctx, http.MethodPost, "/agent_assignments", bytes.NewReader(body)) + _, err = c.do(ctx, http.MethodPost, "/agent_assignments", body) if err != nil { return err }