Skip to main content
PUT
Update Sensor
Updates an existing Sensor record. You must include the Id of the record to update along with all required fields.

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-Edit role.

Enums

Request Body

Required Fields

integer
required
The Id of the Sensor record to update.
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[]
The added desks value for this sensor.
integer[]
The removed desks value for this sensor.
integer[]
List of resources linked to this record.
integer[]
The added resources value for this sensor.
integer[]
The removed resources value for this sensor.
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.
string
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 update.
object
Contains the Id of the updated record.
boolean
true if the sensor was updated 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