I created a connector with a web hook with the below trigger, which works great:
{ "webhook_id": "7689a169-a000-4985-8676-6902b96d6627", "event": "taskUpdated", "task_id":"c0j", "history_items": [ { "id":"33169", "type":1, "date":"1575650190085", "field":"status", "parent_id":"1753", "data":{ "status_type":"closed" }, "source":null, "user":{ "id":183, "username":"John Doe", "email":"example@email.com", "color":"#827718", "initials":"JK", "profilePicture":"https://dev-attachments-public.clickup.com/profilePictures/183_nx1.jpg" }, "before":{ "status":"open", "color":"#d3d3d3", "orderindex":0, "type":"open" }, "after":{ "status":"complete", "color":"#6bc950", "orderindex":1, "type":"closed" } } ] }
I created it by pasting in the json sample so it could derive the schema. The problem is that sometimes the schema changes. In some cases, the bold face part above looks like this:
"before":"open",
"after": "closed"
The flow will fail as the web hook says "before" should be an object instead of a string. How do I configure the web hook so that it can handle these types of variations in schema?