Skip to content

Commit 3203c49

Browse files
authored
Merge pull request #449 from nue-digital/alert-toggling
* SDK changes for Alert toggling
2 parents 4a1911f + b127cc9 commit 3203c49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ThreatMonitoring/AlertClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ public function getAlerts($page = 1, $perPage = 15, $filters = [])
8383
public function toggleAlerts($data)
8484
{
8585
$response = $this->post('v1/alerts/rules/toggle', json_encode($data));
86-
$body = $this->decodeJson($response->getBody()->getContents());
87-
return $body;
86+
87+
return $response->getStatusCode() === 204 || $response->getStatusCode() === 200;
8888
}
8989

9090
/**

0 commit comments

Comments
 (0)