Hello,
I hope all of you are feeling well!
I have created a presence subscription for multiple users and I have set 2 days for the expiration of the presence subscription but my subscription expires every hour.
****Create presence subscription****
{
"changeType": "Updated",
"notificationUrl": "https://stg.xyz.rr.com/zzzi/yyyyy/webhook",
"resource": "/communications/presences/?$filter=id in('7e7e6527-967d-470e-a03f-77a11e71b974','d451ed46-85a3-4457-b564-b9778f388c3e','74741d00-9861-483d-9b0c-856a6e44701b','51883b74-7cff-47e1-beca-9102002cfe76')",
****"expirationDateTime":"2022-01-15T03:40:45.9356913Z",****
"notificationQueryOptions": "$filter = isFetchable eq true",
"clientState": "secretClientState"
}
****but after the creation of my presence subscription, the response JSON from subscription API shows me below JSON****
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#subscriptions/$entity",
"id": "b8f4c1c4-da25-4f11-be2e-7c43b179e6af",
"resource": "/communications/presences/?$filter=id in('7e7e6527-967d-470e-a03f-77a11e71b974','d451ed46-85a3-4457-b564-b9778f388c3e','345345345-9861-483d-9b0c-856a6e44701b','51883b74-7cff-47e1-beca-9102002cfe76')",
"applicationId": "345345345-f638-4215-8871-749ed7bc7198",
"changeType": "updated",
"clientState": "secretClientState",
"notificationUrl":"https://stg.xyz.rr.com/zzzi/yyyyy/webhook",
"notificationQueryOptions": "$filter = isFetchable eq true",
"lifecycleNotificationUrl": null,
"expirationDateTime": "2022-01-12T06:12:58.739015Z",
"creatorId": "23423424-6ffa-4b23-bb47-431d535dc1b4",
"includeResourceData": null,
"latestSupportedTlsVersion": "v1_2",
"encryptionCertificate": null,
"encryptionCertificateId": null,
"notificationUrlAppId": null
}
Here is my Post-Man call