Sensor Interface¶
Create a Sensor Interface¶
To create a Sensor Interface for a Sensor POST an AddSensorInterfaceRequest to the
Sensor's base interface path:
1 2 3 4 5 6 7 | |
For the request to be successful:
- The user must have the
addSensorInterfaceandupdateSensorpermissions for the Sensor's customer, a role that grants them, or belong to a group with said permissions - The Sensor for which we want to create the Interface must exist
- The Location of the Interface must exist
- The Interface name must be unique for the targeted Sensor i.e. different Sensors can have Interfaces with the same name but a Sensor cannot have multiple Interfaces with the same name
- The Customer must exist and if the shared customer data flag is not set the interface's customer must be the same as the sensor's
Sensor Customer
Once the Sensor Interface is created, it is not possible to modify its Customer.
List a Sensor's Interfaces¶
To list a Sensor's interfaces GET the Sensor's base interface path:
1 | |
For the request to be successful:
- The user must have the
viewSensorInterfacepermission for the Sensor's customer, a role that grants them, or belong to a group with said permissions - The Sensor must exist
Get a Sensor's Interface¶
To get a specific Sensor Interface append the Interface's ID or name to the Sensor's base interface path
1 | |
For the request to be successful:
- The user must have the
viewSensorInterfacepermission for the Sensor's customer, a role that grants them, or belong to a group with said permissions - The Sensor must exist
- The Interface must exist
Update a Sensor's Interface¶
To update a specific Sensor's Interface PUT an UpdateSensorInterfaceRequest to that
Sensor Interface's path:
1 2 3 4 5 6 | |
For the request to be successful:
- The user must have the
viewSensors,updateSensor,viewSensorInterface, andupdateSensorInterfacepermissions for the Sensor's customer, a role that grants them, or belong to a group with said permissions - The Sensor must exist
- The Interface must exist
- The request must be valid - Any new name must be unique to the Sensor - Any new Location must exist and belong to the same Customer as the Interface's Sensor
Delete a Sensor's Interface¶
To delete a specific Sensor's Interface submit a DELETE request to that
Sensor Interface's path:
1 | |
For the request to be successful:
- The user must have the
updateSensorandremoveSensorInterfacepermissions for the Sensor's customer, a role that grants them, or belong to a group with said permissions - The Sensor must exist
- The Interface must exist