Empty Unstructured events

Hi!

For some reasons i would like to send Unstructured event with no properties or data.
We are sending event without:Any data and we are getting errors
Schema also doesn’t have any required properties.

Does snow plow support unstructured event without any Data in properties?
And how can we do it?

Structured event doesn’t apply for us

Hi @rodion_zhukov
You should be able to send an unstructured event with no data properties.

This should work (You’ll want to update the Vendor and Name fields):

{
  "$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#",
  "self": {
    "vendor": "com.acme",
    "name": "blank",
    "format": "jsonschema",
    "version": "1-0-0"
  },
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Then to test this, you could send a GET to the Iglu Webhook Adapter by opening this URL in your browser (change the Collector URL, Vendor and Schema name in this url to match the Schema):
http://<<COLLECTORURL>>/com.snowplowanalytics.iglu/v1?schema=iglu%3Acom.acme%2Fblank%2Fjsonschema%2F1-0-0

Here are the docs on the Iglu Webhook Adapter so you can appreciate what is going on here: https://github.com/snowplow/snowplow/wiki/Iglu-webhook-adapter

If this works for you, then any of the other trackers should also work :slight_smile:

Thanks, that works!:slight_smile:

1 Like