Skip to content

Commit

Permalink
SCALRCORE-24606 API > Fix relationships endpoints set correct request…
Browse files Browse the repository at this point in the history
… content type
  • Loading branch information
denkl committed Dec 11, 2023
1 parent 1b1c812 commit 60b6d44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions policy_group_environments.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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
}
Expand Down

0 comments on commit 60b6d44

Please sign in to comment.