From 60b6d441064ce488a83af822d96fb87256f16eb5 Mon Sep 17 00:00:00 2001 From: Denys Kolomytskyi Date: Mon, 11 Dec 2023 10:49:14 +0200 Subject: [PATCH] SCALRCORE-24606 API > Fix relationships endpoints set correct request content type --- policy_group_environments.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/policy_group_environments.go b/policy_group_environments.go index 17a314d..b2b8934 100644 --- a/policy_group_environments.go +++ b/policy_group_environments.go @@ -86,7 +86,7 @@ func (s *policyGroupEnvironment) Create(ctx context.Context, options PolicyGroup if err != nil { return err } - req, err := s.client.newJsonRequest("POST", u, payload) + req, err := s.client.newRequest("POST", u, payload) if err != nil { return err } @@ -104,7 +104,7 @@ func (s *policyGroupEnvironment) Update(ctx context.Context, options PolicyGroup if err != nil { return err } - req, err := s.client.newJsonRequest("PATCH", u, payload) + req, err := s.client.newRequest("PATCH", u, payload) if err != nil { return err }