Update tokenlifetimepolicy

Namespace: microsoft.graph

Update the properties of a tokenLifetimePolicy object.


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/tokenLifetimePolicies/{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. For more information about the JSON schema for this property, see Properties of a token lifetime policy definition. 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.


If successful, this method returns a 204 No Content response code. It does not return anything in the response body.



The following is an example of the request.

PATCH https://graph.microsoft.com/v1.0/policies/tokenLifetimePolicies/4d2f137b-e8a9-46da-a5c3-cc85b2b840a4
Content-type: application/json

    "definition": [
    "displayName": "Contoso token lifetime policy",
    "isOrganizationDefault": true


The following is an example of the response.

HTTP/1.1 204 No Content