Sensors
Create Sensor
Create a new Sensor record.
POST
Create Sensor
A sensor is an IoT device for a location that receives or polls environmental and occupancy readings, and can use changed readings to update availability, manage bookings, and send alerts.
Authentication
This endpoint requires OAuth2 authentication. Include a valid bearer token in the
Authorization header.
The authenticated user must be a full unrestricted administrator or have the Sensor-Create role.Enums
eSensorType — SensorType values
eSensorType — SensorType values
eSensorDataStrategy — DataStrategy values
eSensorDataStrategy — DataStrategy values
Request Body
Required Fields
Required non-empty display name for the sensor; together with Unit it identifies the sensor within the location..
Required unique integration reference used to find this sensor within its location; set it when creating the sensor and do not change it later..
Kind of reading produced by the device: PresenceDetection, PeopleCounter, Temperature, Humidity, Light, Noise, CO2, VolatileOrganicCompounds, HarmfulParticulates, Touch, Water, AtmosphericPressure, Power, OpenClosed, or Other; presence values are normalized to 0 or 1..
How readings reach Nexudus: Polling fetches data from PayloadDataPath, while Endpoint, DisruptiveTechnologies, and Pressac receive data through their integrations..
Optional Fields
List of floor plan desks whose occupancy and latest sensor value this sensor can update; an empty list means no desks are affected..
List of bookable resources whose availability, occupancy, and latest sensor value this sensor can update; an empty list means no resources are affected..
Optional unit label for the sensor reading, such as C, percent, or people; together with Name it identifies the sensor within the location..
URL fetched for a Polling sensor to obtain its payload; polling does nothing when this value is empty..
Optional Flee expression that decides whether a changed reading runs enabled actions; leave empty to run actions for every changed reading, and use payload and sensor as the available context variables..
Optional Flee expression that extracts the sensor reading from the incoming payload; leave empty to use payload[“value”]..
Whether a changed reading that triggers actions sends an operator email alert; repeated alerts are suppressed until a non-triggering reading occurs..
Optional email address that receives operator sensor alerts when ActionSendEmailAlert is enabled; must be a valid email address..
Optional destination URL used by the HTTP request action; it is also logged as the polling source for diagnostics..
Whether a changed reading that triggers actions sends a customer alert email; repeated alerts are suppressed until a non-triggering reading occurs..
Encrypted shared secret used to validate incoming webhook signatures; configure it through a secure integration workflow, not the Admin Agent..
Encrypted API credential used to authenticate sensor polling or incoming requests; configure it through a secure integration workflow, not the Admin Agent..
Username paired with the encrypted Password for HTTP Basic authentication; it is not usable through the Admin Agent because the paired password is protected..
Encrypted password paired with Username for HTTP Basic authentication; configure it through a secure integration workflow, not the Admin Agent..
Code Examples
Response
200
Example Response
400
Example Response