From 64d399f2a92531b661113191cfc046e0b0822c9a Mon Sep 17 00:00:00 2001 From: Aravindkumar Rajendiran <825663+arajendiran@users.noreply.github.com> Date: Fri, 5 Apr 2024 14:31:17 -0400 Subject: [PATCH] Fix wrong http method name for subscription update --- subscription.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subscription.go b/subscription.go index dd17765..cda49d2 100644 --- a/subscription.go +++ b/subscription.go @@ -126,7 +126,7 @@ func (s *Subscription) Update(ctx context.Context, subscriptionId string, body * } respPtr := &SubscriptionResponse{} - err = postJSON(ctx, s.client, url, body, respPtr) + err = putResource(ctx, s.client, url, body, respPtr) if err != nil { return nil, err }