"change_specific_column_value" creates webhook for any column if columnid has integer

Hello,

Seems like there is a bug related with creating webhooks from API on boards.

To reproduce this:

  1. Create new column with API:

Request:

{“query”:“mutation { create_column (board_id: 1195853715, title: “Y”, column_type: text) { id } }”}

  1. 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”:

  1. Delete Y column manually

  2. 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

  1. 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.

Additional Note: we tried to add new column with name “Z” after deleting “Y”, webhook created as expected. There is a problem with deleting and creating column with same title. Fyi.

Hi @tgurler,

Thank you for pointing this out! Happy to submit this as a bug for our developers to investigate.

For now, I would recommend sticking with a new column name as you identified.

Thanks!