Forum Discussion
Question about subscription length
Hi, I want to keep a change notification subscription to calendar and online meeting resource being updated every day(firstly created a subscription with 24 hours length and set expire time in next 24 hours after one day) but the subscription disappear in 3 days(I wanted to update existing subscription but received 404 response). I know that the maximum life length of subscription for event is 3 days but I want to confirm that this period is the time the subscription could be saved in Microsoft and cannot be extended?(Can I update expire time to extend subscription or only 3 days after it being created?)
- Prasad_Das-MSFTMicrosoft
ChenguangHe - You can renew a subscription with a specific expiration date of up to three days only from the time of request. The
expirationDateTime
property is required.PATCH https://graph.microsoft.com/v1.0/subscriptions/{id} Content-Type: application/json { "expirationDateTime": "2022-10-22T11:00:00.0000000Z" }
If successful, Microsoft Graph returns a
200 OK
code and a subscription object in the body. The subscription object includes the newexpirationDateTime
value.Thanks,
Prasad Das
--------------------------------------------------------------------------------------------
If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.
- ChenguangHeBrass ContributorPrasad_Das-MSFT this problem has been solved. Thanks.
- Prasad_Das-MSFTMicrosoft
ChenguangHe - Thanks for informing.
If the above provided response was helpful, please click "**Mark as Best Response**" and like it.
You can share your feedback via Microsoft Teams Developer Feedback link.