Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 575 Bytes

File metadata and controls

20 lines (13 loc) · 575 Bytes
description Automatically generated file. DO NOT MODIFY
<?php
use Microsoft\Graph\Beta\GraphServiceClient;
use Microsoft\Graph\Beta\Generated\Models\Security\HealthIssue;
use Microsoft\Graph\Beta\Generated\Models\Security\HealthIssueStatus;


$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);

$requestBody = new HealthIssue();
$requestBody->setStatus(new HealthIssueStatus('closed'));

$result = $graphServiceClient->security()->identities()->healthIssues()->byHealthIssueId('healthIssue-id')->patch($requestBody)->wait();