zone
POST {{webhook-url}}
Webhook Body Parameters
Parameter | Type | Description |
---|
topic | string | topic subscribed to |
events | list | list of events |
id | string | uuid of SDK-client |
name | string | name of the client, may be empty |
site_id | string | site id |
map_id | string | map id |
zone_id | string | zone id |
trigger | string | enter / exit |
timestamp | int | timestamp of the event, epoch |
mac | string | mac address of wifi client or asset |
asset_id | string | uuid of named asset |
Request Body
{"topic"=>"zone", "events"=>[{"site_id"=>"4ac1dcf4-9d8b-7211-65c4-057819f0862b", "map_id"=>"845a23bf-bed9-e43c-4c86-6fa474be7ae5", "zone_id"=>"8ac84899-32db-6327-334c-9b6d58544cfe", "trigger"=>"enter", "timestamp"=>1461220784, "type"=>"sdk", "id"=>"de87bf9d-183f-e383-cc68-6ba43947d403", "name"=>"optional"}, {"site_id"=>"4ac1dcf4-9d8b-7211-65c4-057819f0862b", "map_id"=>"845a23bf-bed9-e43c-4c86-6fa474be7ae5", "zone_id"=>"8ac84899-32db-6327-334c-9b6d58544cfe", "trigger"=>"enter", "timestamp"=>1461220784, "type"=>"wifi", "mac"=>"5684dae9ac8b"}, {"site_id"=>"4ac1dcf4-9d8b-7211-65c4-057819f0862b", "map_id"=>"845a23bf-bed9-e43c-4c86-6fa474be7ae5", "zone_id"=>"8ac84899-32db-6327-334c-9b6d58544cfe", "trigger"=>"enter", "timestamp"=>1461220784, "type"=>"asset", "mac"=>"7fc2936fd243", "asset_id"=>"c180b858-8f39-11e7-a7a5-346895ed1b7d"}]}
Key | Datatype | Required | Description |
---|
X-Mist-Signature | null | | when the webhook is configured with a secret: HMAC_SHA1(secret, body) |
X-Mist-Signature-v2 | null | | when the webhook is configured with a secret: HMAC_SHA256(secret, body) |