One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.
Permission type
Permissions (from least to most privileged)
Delegated (work or school account)
Policy.ReadWrite.ApplicationConfiguration
Delegated (personal Microsoft account)
Not supported.
Application
Policy.ReadWrite.ApplicationConfiguration
HTTP request
PATCH /policies/tokenIssuancePolicies/{id}
Request headers
Name
Description
Authorization
Bearer {token}. Required.
Content-type
application/json. Required.
Request body
In the request body, supply the values for relevant fields that should be updated. Existing properties that are not included in the request body will maintain their previous values or be recalculated based on changes to other property values. For best performance, don't include existing values that haven't changed.
Property
Type
Description
definition
String collection
A string collection containing a JSON string that defines the rules and settings for this policy. Required.
description
String
Description for this policy.
displayName
String
Display name for this policy. Required.
isOrganizationDefault
Boolean
If set to true, activates this policy. There can be many policies for the same policy type, but only one can be activated as the organization default. Optional, default value is false.
Response
If successful, this method returns a 204 No Content response code. It does not return anything in the response body.
// Code snippets are only available for the latest version. Current version is 5.x
var graphClient = new GraphServiceClient(requestAdapter);
var requestBody = new TokenIssuancePolicy
{
Definition = new List<string>
{
"definition-value",
},
DisplayName = "displayName-value",
IsOrganizationDefault = true,
};
var result = await graphClient.Policies.TokenIssuancePolicies["{tokenIssuancePolicy-id}"].PatchAsync(requestBody);
<?php
// THIS SNIPPET IS A PREVIEW FOR THE KIOTA BASED SDK. NON-PRODUCTION USE ONLY
$graphServiceClient = new GraphServiceClient($requestAdapter);
$requestBody = new TokenIssuancePolicy();
$requestBody->setDefinition(['definition-value', ]);
$requestBody->setDisplayName('displayName-value');
$requestBody->setIsOrganizationDefault(true);
$result = $graphServiceClient->policies()->tokenIssuancePolicies()->byTokenIssuancePolicieId('tokenIssuancePolicy-id')->patch($requestBody);