Hello,
Seems like there is a bug related with creating webhooks from API on boards.
To reproduce this:
- Create new column with API:
Request:
{“query”:“mutation { create_column (board_id: 1195853715, title: “Y”, column_type: text) { id } }”}
- Create webhook on this column (id is “y” from response of 1):
Request:
{“query”:“mutation { create_webhook (board_id: 1195853715, url: “https://*******.com/monday/webhook.php”, event: change_specific_column_value config: “{\“columnId\”:\“y\”}”) { id } }”}
It works fine and created webhook on column “Y”:
-
Delete Y column manually
-
Create Y column again with API
Request:
{“query”:“mutation { create_column (board_id: 1195853715, title: “Y”, column_type: text) { id } }”}
Response:
{“data”:{“create_column”:{“id”:“y2”}},“account_id”:8431610} //see that id becomes y2
- Create webhook again for this column:
Request:
{“query”:“mutation { create_webhook (board_id: 1195853715, url: “https://**********.com/monday/webhook.php”, event: change_specific_column_value config: “{\“columnId\”:\“y2\”}”) { id } }”}
Response:
stdClass Object ( [data] => stdClass Object ( [create_webhook] => stdClass Object ( [id] => 40518843 ) ) [account_id] => 8431610 )
It has response like it created change_specific_column_value; but when user goes to integrations; he sees:
It creates webhook for “a column” instead of column Y and it’s not calling webhook when value is changed.
Are we doing something wrong? Can you help about this?
Thanks.