Mail Subscription Creation unable to set the expirationDateTime

Elena Grosu 0 Reputation points
2024-12-02T17:10:56.09+00:00

Hello, I'm sending a POST to https://graph.microsoft.com/v1.0/subscriptions, with the following parameter in request body:
"expirationDateTime": "2024-12-04T15:20:21.7740485Z",
But the subscription is created with :
"expirationDateTime": "2024-12-03T16:33:46.6373566Z",User's image

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,360 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. CarlZhao-MSFT 46,071 Reputation points
    2024-12-03T10:30:37.15+00:00

    Hi @Elena Grosu

    This may be because the expiration time you set exceeds the subscription lifecycle of the target resource. Each resource has a limited subscription expiration time. When the time you set exceeds the limit, it will default to the maximum expiration time of the target resource. In the future, any request to create or renew a subscription that exceeds the maximum value will fail.

    Hope this helps.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.