Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 621 Bytes

File metadata and controls

21 lines (14 loc) · 621 Bytes
description Automatically generated file. DO NOT MODIFY
<?php
use Microsoft\Graph\Beta\GraphServiceClient;
use Microsoft\Graph\Beta\Generated\Models\OrganizationalBrandingTheme;


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

$requestBody = new OrganizationalBrandingTheme();
$requestBody->setOdataType('#microsoft.graph.organizationalBrandingTheme');
$requestBody->setName('ContosoTheme');
$requestBody->setIsDefaultTheme(true);

$result = $graphServiceClient->organization()->byOrganizationId('organization-id')->branding()->themes()->post($requestBody)->wait();