Skip to main content

Webhook test events

Use these mutations to validate webhook receivers or downstream ingestion without waiting for live traffic.

Dev-mode only

These mutations are only available for floors in dev mode, and require WritePublicApi on the API key. See Test data without live sensors for how to get a dev-mode floor and the full list of generator mutations.

Generate occupancy change events

Open in API Explorer

Example query

mutation generateOccupancyEvents {
generateOccupancyEvents(floorId: "<floor guid>", count: 1, includeHeadcountChanges: true) {
floorSpaceId
headcount
occupancyStatus
previousOccupancyStatus
collectedDate
}
}

Example response

{
"data": {
"generateOccupancyEvents": [
{
"floorSpaceId": "ac52e43d-7c21-4464-ab21-d0ace07a94b1",
"headcount": 0,
"occupancyStatus": "NotOccupied",
"previousOccupancyStatus": "RecentlyOccupied",
"collectedDate": "2023-04-19T04:17:39.1066221Z"
}
]
}
}

Generate floor sighting updates

Open in API Explorer

Example query

mutation generateSightings {
generateFloorSightings(floorId: "<floor guid>", sightingCount: 20, durationSecs: 30)
}

Example response

{
"data": {
"generateFloorSightings": true
}
}

Notes

  • The occupancy mutation toggles randomly selected spaces on the target floor.
  • The floor-sightings mutation can emit sightings continuously for the requested duration.
  • Use the regular polling queries or webhook receiver to verify that the generated traffic arrived where expected.