Forum Discussion

ChenguangHe's avatar
ChenguangHe
Brass Contributor
Nov 08, 2022

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?)

  • 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 new expirationDateTime 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.

     

Resources