When calling Webhooks.AddWebhook, I'm getting the following error:
Newtonsoft.Json.JsonSerializationException: Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'System.String[]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.
When I checked webhook via UI, the Webhook integration was there. The endpoint creates the webhook but cannot serialize the response. there are two properties which are headers and payload, those properties are tiring to cast to a string array but they are objects.
When calling Webhooks.AddWebhook, I'm getting the following error:
Newtonsoft.Json.JsonSerializationException: Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'System.String[]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.
When I checked webhook via UI, the Webhook integration was there. The endpoint creates the webhook but cannot serialize the response. there are two properties which are headers and payload, those properties are tiring to cast to a string array but they are objects.
Related documentation is here
For reference, this is the response I got from the server:
this is my pr request if you interested