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
eSensorDataStrategy — DataStrategy values
eSensorDataStrategy — DataStrategy values
Request Body
Required Fields
integer
required
ID of the business linked to this record.
string
required
The name value for this sensor.
string
required
The reference value for this sensor.
integer
required
The sensor type value for this sensor.
integer
required
The data strategy value for this sensor.
Optional Fields
integer[]
List of desks linked to this record.
integer[]
List of resources linked to this record.
integer
ID of the canned response linked to this record.
string
The unit value for this sensor.
boolean
Whether this sensor is currently active.
string
The payload data path value for this sensor.
string
The action trigger function value for this sensor.
string
The value function value for this sensor.
boolean
Whether action send email alert is enabled.
string
The alert email address value for this sensor.
string
The webhook url value for this sensor.
boolean
Whether action update desk availability is enabled.
boolean
Whether action update resource availability is enabled.
boolean
Whether action update booking occupancy is enabled.
boolean
Whether action send customer email alert is enabled.
boolean
Whether action booking start is enabled.
boolean
Whether action booking terminate is enabled.
boolean
Whether action check in or out is enabled.
boolean
Whether action make http request is enabled.
boolean
Whether show in now dashboard is enabled.
boolean
Whether show in portal is enabled.
The shared secret value for this sensor.
string
The api key value for this sensor.
string
The username value for this sensor.
string
The password value for this sensor.
Code Examples
Response
200
integer
HTTP status code.
200 on success.string
A human-readable message confirming the creation.
object
Contains the
Id of the newly created record.boolean
true if the sensor was created successfully.array
null on success.Example Response
400
string
A summary of the validation error(s), in the format
PropertyName: error message.any
null on validation failure.object[]
Array of validation errors.
boolean
false when the request fails validation.Example Response
Create Sensor