Particle - Azure Webhook [Answered]

Hi,

The payload part, everything between “json”: { … } is this something fixed or can this be changed to own requirements?

{
“event”: “ConnectTheDots”,
“url”: “https://connectthedotsex-ns.servicebus.windows.net/ehdevices/messages”,
“requestType”: “POST”,
“json”: {
“subject”: “{{s}}”,
“unitofmeasure”: “{{u}}”,
“measurename”: “{{m}}”,
“value”: “{{v}}”,
“organization”: “{{o}}”,
“displayname”: “{{d}}”,
“location”: “{{l}}”,
“timecreated”: “{{SPARK_PUBLISHED_AT}}”,
“guid”: “{{SPARK_CORE_ID}}”

},

“azure_sas_token”: {
“key_name”: “D1”,
“key”: “mBLQGWxSkRHg7f2eRCLonHUpNS+DY0iPHclxjf7Cmvk=”
},
“mydevices”: true
}

Thanks.
Guy

question/problem solved.

Thanks.

1 Like

Just for reference if other people find this thread, you can indeed set whatever variables you like!

http://docs.particle.io/photon/webhooks/#templates-custom-template-variables

Thanks,
David