Hello,
I can not find in the documentation that there is a support subscribing to multiple webhook events. So is this something that is supported?
Hello,
I can not find in the documentation that there is a support subscribing to multiple webhook events. So is this something that is supported?
Hello there @sanel and welcome to the community!
I hope you like it here
I am not sure I understand the use case here.
What do you want to achieve? What is the use case?
Hello Matias,
Thanks for replying.
Well, I do want to subscribe to multiple webhook events (created item/updated item). I would like to avoid doing two requests to achieve this and instead to do a single request with a parameter that would indicate that I want to subscribe to those two events. Is this possible?
Hello again @sanel,
If I understand correctly, you want to create 2 webhooks in a board using the API, and do so with only one request.
You can do that with a mutation like this one:
mutation {
createWebhookOne: create_webhook(board_id: 1234567890, url: "https://70a4-00-00-000-33.ngrok.io", event: create_item) {
id
board_id
}
createWebhookTwo: create_webhook(board_id: 1234567890, url: "https://70a4-00-000-000-33.ngrok.io", event: change_specific_column_value, config: "{\"columnId\": \"status\"}") {
id
board_id
}
}
Was this what you were looking for?
Cheers,
Matias
Glad to help!
Let us know if you have any other questions!