We are using this subscription API to update the subscription details where the expiration date and notification URL are getting updated but not the client state.
https://graph.microsoft.com/v1.0/subscriptions/{subscription_id}
We used the following Get Subscription API to get the subscription details. But we are getting the client state value as null even after updating it.
Because of this, when we get the incoming email on the notification URL, we are getting a null value for the client state.
https://graph.microsoft.com/v1.0/subscriptions/{subscription_id}
When we delete this subscription and create a new subscription, then the client state value is properly set.
We would like to know what could be the problem while updating the client state.
Following is the sample request body used for updating the client's state
{
"expirationDateTime": "2024-04-29T18:28:47.512Z",
"notificationUrl": "some.url.com",
"clientState": "{some_secret_value}"
}