Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 594 Bytes

File metadata and controls

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


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

$requestBody = new WorkHoursAndLocationsSetting();
$requestBody->setMaxSharedWorkLocationDetails(new MaxWorkLocationDetails('approximate'));

$result = $graphServiceClient->me()->settings()->workHoursAndLocations()->patch($requestBody)->wait();