Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 810 Bytes

File metadata and controls

25 lines (18 loc) · 810 Bytes
description Automatically generated file. DO NOT MODIFY
<?php
use Microsoft\Graph\Beta\GraphServiceClient;
use Microsoft\Graph\Beta\Generated\Models\ProjectParticipation;
use Microsoft\Graph\Beta\Generated\Models\AllowedAudiences;
use Microsoft\Graph\Beta\Generated\Models\CompanyDetail;


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

$requestBody = new ProjectParticipation();
$requestBody->setAllowedAudiences(new AllowedAudiences('organization'));
$client = new CompanyDetail();
$client->setDepartment('Corporate Marketing');
$client->setWebUrl('https://www.contoso.com');
$requestBody->setClient($client);

$result = $graphServiceClient->me()->profile()->projects()->byProjectParticipationId('projectParticipation-id')->patch($requestBody)->wait();