Sensor information & management
Patch sensor settings
Patch the settings for a specific sensor
patch/v1/sensors/{id}
Request
- Base URLhttps://api.ui.com/v1/connector/consoles/942A6FF664C0000000000964970E0000000009E710560000000068A9873F:9999999999/proxy/protect/integration
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring required
The primary key of sensor
Example:66d025b301ebc903e80003ea
Request body
Example request
{
"name": "Front Door",
"lightSettings": {
"margin": 10,
"lowThreshold": 20,
"highThreshold": 100
},
"humiditySettings": {
"margin": 1,
"lowThreshold": 30,
"highThreshold": 80
},
"temperatureSettings": {
"margin": 0.1,
"lowThreshold": 20,
"highThreshold": 25
},
"motionSettings": {
"sensitivity": 50,
"sensitivityWhenArmed": 50
},
"glassBreakSettings": {
"sensitivity": 25,
"sensitivityWhenArmed": 50
}
}Response
Success response
Example response
{
"id": "66d025b301ebc903e80003ea",
"state": "CONNECTED",
"name": "Front Door",
"mac": "24A43C3DFEB9",
"mountType": "door",
"batteryStatus": {
"percentage": 95
},
"stats": {
"light": {
"value": 22.5,
"status": "high"
},
"humidity": {
"value": 22.5,
"status": "high"
},
"temperature": {
"value": 22.5,
"status": "high"
}
},
"lightSettings": {
"margin": 10,
"lowThreshold": 20,
"highThreshold": 100
},
"humiditySettings": {
"margin": 1,
"lowThreshold": 30,
"highThreshold": 80
},
"temperatureSettings": {
"margin": 0.1,
"lowThreshold": 20,
"highThreshold": 25
},
"openStatusChangedAt": 1445408038748,
"motionDetectedAt": 1445408038748,
"motionSettings": {
"sensitivity": 50,
"sensitivityWhenArmed": 50
},
"glassBreakSettings": {
"sensitivity": 25,
"sensitivityWhenArmed": 50
},
"alarmTriggeredAt": 1445408038748,
"leakDetectedAt": 1445408038748,
"externalLeakDetectedAt": 1445408038748,
"tamperingDetectedAt": 1445408038748,
"wirelessConnectionState": {
"signalState": {
"signalQuality": 85,
"signalStrength": -45
},
"batteryStatus": {
"percentage": 95
},
"bridge": "66d025b301ebc903e80003ea"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.