createSiteWebhook - Webhook
POST https://{{host}}/api/v1/sites/:site_id/webhooks
#### Body Parameter Parameter|Type|Description :-------------: |:-------------: |:-------------: name|string|name of the webhook enabled|boolean|whether webhook is enabled topics|list|list of subscribed topics: location/zone/vbeacon/rssizone/asset-raw/device-events/alarms/audits/client-sessions type|string|http-post (default) / splunk / google-pubsub / aws-sns url|string|url headers|object|custom headers: the headers name and value must be string, total bytes of headers name and value must be less than 1000 secret|string|optional, when type=http-post, if provided, X-Mist-Signature in HTTP header will be the signature of HMACSHA1(secret, body) verifycert|boolean|when url uses HTTPS, whether to verify the certificate, default is false
- If headers format is invalid, “X-Mist-Error”: “headers format invalid” will be sent.
- If total bytes of headers exceed 1000, “X-Mist-Error”: “headers too big” will be sent.
- If any header value is not string, “X-Mist-Error”: “header[%s] not a string” will be sent.
Request Body
{"name"=>"analytic", "type"=>"http-post", "url"=>"https://username:password@hooks.abc.com/uri/...", "secret"=>"secret", "headers"=>{"x-custom-1"=>"your_custom_header_value1", "x-custom-2"=>"your_custom_header_value2"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string | ||
X-CSRFToken | string | ||
Content-Type | string |