Webhook custom payload

Screenshot 2026-01-28 085536
How can I send dynamic value on payload webhook
For ex: time, old/current value of attribute,…

I met a problem: if I put %TRIGGER_ASSETS% on payload, I can only send TRIGGER_ASSETS data although my payload have other

Here
{

"message" : "Warning pm1 exceed",
"total_exceed" : 2,
"assets": "%TRIGGER_ASSETS%"

}

But if dont use TRIGGER_ASSETS, I can send more data

Hi! First of all, welcome to the forum!

So from what I understand,
you try to send additional JSON data alongside "assets": "%TRIGGER_ASSETS%",
but it removes it when sending the HTTP request?

So that would mean;
{"rule": "%RULESET_NAME%", "assets": "%TRIGGER_ASSETS%"} works, but
{"rule": "%RULESET_NAME%", "assets": "%TRIGGER_ASSETS%", "mydata": 2} does not?

Could it be specific to your number value that is in there?

I’m happy to create an GitHub issue if this is a bug in our platform.

1 Like

I read from JsonRulesBuilder.java
all data what I set on webhook payload be replaced by triggeredAssetInfoPayload

for example:
I set

{“rule”: “%RULESET_NAME%”, “assets”: “%TRIGGER_ASSETS%”, “mydata”: 2}

but only received

{‘3D7ti3k6Py5LPF4cIrBnqP’: [{‘ref’: {‘id’: ‘3D7ti3k6Py5LPF4cIrBnqP’, ‘name’: ‘pm10’}, ‘value’: 68.0, ‘timestamp’: 1769569889912, ‘deleted’: False, ‘realm’: ‘master’, ‘oldValue’: 75.0, ‘oldValueTimestamp’: 1769569283625, ‘path’: [‘3D7ti3k6Py5LPF4cIrBnqP’], ‘assetName’: ‘Khong khi OSAKA’, ‘assetType’: ‘ThingAsset’, ‘createdOn’: 1769503319462, ‘type’: ‘number’}]}

Not have “mydata”: 2 or RULESET_NAME

What purpose of this ?

Another question: Can I place more custom value on webhook payload: assetName, attributeName, attributeLabel,… ?
As I read on document: only see