Getting more data attributes in webhook

currently in my webhook there are only two attributes that are somewhat editable. There is the “events” field and the “data” field. So for example the webhook will post {“event”:“webhook-name”,“data”:“this is data from electron posting to another server”}. and these fields are comming from the publish function. So the above is the result of Particle.publish(“webook-name”,“this is data from electron posting to another server”) I would like to send way more attributes than that. Is there a way in the webhook to send custom attributes?

Yes, by formatting the event data as JSON, you can have as many individual data fields as you want, up to the size limit, of course.

1 Like