Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 571 Bytes

File metadata and controls

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


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

$requestBody = new IncidentTask();
$requestBody->setStatus(new IncidentTaskStatus('completed'));

$result = $graphServiceClient->security()->incidentTasks()->byIncidentTaskId('incidentTask-id')->patch($requestBody)->wait();