Sensors
Create Sensor
Create a new Sensor record.
POST
Create Sensor
A Sensor represents a physical IoT sensor deployed in a location for monitoring environmental conditions or occupancy. Sensors can detect presence, count people, measure temperature, humidity, noise, CO2 levels, and other metrics.
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
| Value | Name |
|---|---|
| 1 | PresenceDetection |
| 2 | PeopleCounter |
| 3 | Temperature |
| 4 | Humidity |
| 5 | Light |
| 6 | Noise |
| 7 | CO2 |
| 8 | VolatileOrganicCompounds |
| 9 | HarmfulParticulates |
| 10 | Touch |
| 11 | Water |
| 12 | AtmosphericPressure |
| 13 | Power |
| 14 | OpenClosed |
| 99 | Other |
eSensorDataStrategy — DataStrategy values
eSensorDataStrategy — DataStrategy values
| Value | Name |
|---|---|
| 1 | Polling |
| 2 | Endpoint |
| 3 | DisruptiveTechnologies |
| 4 | Pressac |
Request Body
Required Fields
ID of the business linked to this record.
The name value for this sensor.
The reference value for this sensor.
The sensor type value for this sensor.
The data strategy value for this sensor.
Optional Fields
List of desks linked to this record.
List of resources linked to this record.
ID of the canned response linked to this record.
The unit value for this sensor.
Whether this sensor is currently active.
The payload data path value for this sensor.
The action trigger function value for this sensor.
The value function value for this sensor.
Whether action send email alert is enabled.
The alert email address value for this sensor.
The webhook url value for this sensor.
Whether action update desk availability is enabled.
Whether action update resource availability is enabled.
Whether action update booking occupancy is enabled.
Whether action send customer email alert is enabled.
Whether action booking start is enabled.
Whether action booking terminate is enabled.
Whether action check in or out is enabled.
Whether action make http request is enabled.
Whether show in now dashboard is enabled.
Whether show in portal is enabled.
The shared secret value for this sensor.
The api key value for this sensor.
The username value for this sensor.
The password value for this sensor.
Code Examples
Response
200
HTTP status code.
200 on success.A human-readable message confirming the creation.
Contains the
Id of the newly created record.true if the sensor was created successfully.null on success.Example Response
400
A summary of the validation error(s), in the format
PropertyName: error message.null on validation failure.Array of validation errors.
false when the request fails validation.Example Response
Create Sensor