Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Identify Webhook sub-operation

Deleted user July 29, 2019

I am building a simple server to automate some parts of my workflow with Trello, and I registered a Webhook for one of my boards.

I noticed that the Webhook payload provides a type in `action.type`, but this seems very generic. For example, any operation on a card will send the `update_card` action type. At the moment, I am inspecting `action.data` and trying to infer the kind of update that was performed on the card.

Is there a better way to identify the kind of operation? If not, would it be possible to attach it to the payload in order to simplify this process?

Thanks

1 answer

0 votes
Garrett
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 7, 2019

Hey @[deleted] 

Webhooks are a little beyond the scope of my support, but one of our engineers did want me to share their gist to help differentiate those:

https://gist.github.com/mpcowan/4574e6e1ea0edb321047733f982a7d16

That should help with what you suggested, but for now, we don't have plans to change our behavior of those webhooks.

I hope that helps!

Deleted user August 12, 2019

Thanks, that might help!

I'd like to take the opportunity to ask about the `action.type` used for the following operations:

why aren't they `updateCard` action types?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events