Can you pass a variable to a rule via cloud end point?

I want to set a variable in my rule when I call the rule via cloud endpoint. Iā€™ve searched the forum but Iā€™ve not found my answer. ( Iā€™ll be the first to admit that my search skills often fail me or I just donā€™t know the key words I need to search for )

I did find a doc that shows how to update global variables, but I donā€™t need a global variable, I just want to pass a value to a rule that no other rule has access to.

Is this type of thing possible and how can I achieve it?

See this: Rule Machine API

It is also possible to put a value in the URL that will end up in %value% within the rule.

1 Like

This is the thread I read initially, but all I am seeing is hubVariable and globalVariable. I didnā€™t read the whole thread and searching for "value" returns a ton of results in the thread. Am I totally missing the area youā€™re referring to?

Your just stick the value after /trigger/ and before the ?. That ends up in %value% (assuming it's not one of the commands described in that API post.

Experimentation is called for.

2 Likes