{"device_type": "o3-sensor"}curl --location --request POST '/devices//device-control' \
--header 'X-API-Key: your-api-key' \
--header 'Content-Type: application/json' \
--data-raw '{"device_type": "o3-sensor"}'{
"response": {
"device_control": {
"device": "o3-sensor",
"device-control-url": "https://device.zenspace.io/<booking_id>",
"devices": [
{
"device": "temperature",
"input": "text",
"api_data": {}
},
{
"device": "occupancy",
"input": "text",
"api_data": {}
},
{
"device": "buzzer",
"input": "toggle switch",
"api_data": {
"url": "api url",
"method": "POST||GET",
"request_payload": {
"meeting-space-id": "xxxxx",
"action": "on || off",
"key": "user-key",
"booking-id": "xxxxx"
}
}
},
{
"device": "ring-light",
"input": "toggle switch",
"api_data": {
"url": "api url",
"method": "POST||GET",
"request_payload": {
"meeting-space-id": "xxxxx",
"action": "on || off",
"key": "user-key",
"booking-id": "xxxxx"
}
}
}
]
}
}
}