Not able update expirationDateTime of Webhook Subscription

Copper Contributor

Hello,

I am not able to update the update expirationDateTime via API.
Method : PATCH

URL : https://{businesscentralPrefix}/api/v1.0/subscriptions({'id'})

payload: {

"expirationDateTime": "2024-04-16T17:43:07Z"

}

I am getting this error

{
"error": {
"code": "BadRequest",
"message": "Control 'expirationDateTime' is read-only. CorrelationId: 95d7b5ce-85a5-4110-ad3b-e58cbef9093d."
}
}
Kindly help me how to fix this issue.
0 Replies