Skip to content

Create an alert occupancy monitor link

Request

Create a link between an alert and an occupancy monitor.

Security
api_key
Bodyapplication/jsonrequired

The link between an alert and an occupancy monitor to store.

alertIdstring, (uuid)required
occupancyMonitorIdstring, (uuid)required
curl -i -X PUT \
  https://coreapi.hoxton.ai/_mock/v1/alert-occupancy-monitors \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -d '{
    "alertId": "a9367074-b5c3-42c4-9be4-be129f43577e",
    "occupancyMonitorId": "51bf4310-39f9-49d3-99c1-c643ff9c2f04"
  }'

Responses

OK.

Bodyapplication/json
alertIdstring, (uuid)required
occupancyMonitorIdstring, (uuid)required
Response
{ "alertId": "a9367074-b5c3-42c4-9be4-be129f43577e", "occupancyMonitorId": "51bf4310-39f9-49d3-99c1-c643ff9c2f04" }