Facing issue in expriration time using update subscription graph API

Amir Sohail 411 Reputation points
2022-10-06T08:52:24.81+00:00

AOA,
I hope all of you are feeling well!

Problem statement: As per your documentation subscription the default expiration time for a presence subscription is 1 hour. We have been using this functionally for 8 months, and it works fine for us. but in the last 3 days, we have found an unexpected behavior in the subscription update API. means that when we hit the subscription update API it only increases 5 minutes in the expiration time instead of one hour. its means that the renewal process (subscription update API ) is not working fine.

Please help us in this area and please check the below screenshot for more details.
Thanks in advance

Create subscription time.

248016-update-subscription-issue.jpg

After the subscription update API for expiration time it's just updated 5 minutes.

248051-update-subscription-issue-2.jpg

Subscription documentation

248052-your-documentation.jpg

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

Accepted answer
  1. Vicky Kumar (Mindtree Consulting PVT LTD) 1,156 Reputation points Microsoft Employee
    2022-10-07T06:11:56.04+00:00

    If you want to increase the expiry time, could you please specify the date and time in UTC when the subscription expires. For the maximum supported subscription length of time varies depending on the resource.

    248411-image.png

    please see the doc for more details - https://learn.microsoft.com/en-us/graph/api/subscription-update?view=graph-rest-1.0&tabs=http#request-body

    Hope this helps

    Thanks


0 additional answers

Sort by: Most helpful