docs.zenspace.io
  1. Device Management
docs.zenspace.io
  • 🧭 Introduction
  • 🧱 System Components
  • 🧰 Tech Stack
  • 🏗️ System Architecture
  • 🌐 Deployment Architecture
  • 🗄️ Database Design Documentation
  • API Endpoints
    • RaspberryPi
      • Heartbeat API
      • Retrieve all active sensors and device permissions
      • Control a device (e.g., turn on/off, adjust intensity)
      • Enable or disable a device
      • Register a meeting space ID and retrieve network details
    • Meeting Space
      • Schedule meeting space state
      • Get meeting spaces by customer
      • Get meeting space state by ID
      • Get meeting space state by device ID
      • Disable meeting space state
      • Send meeting space state by meeting space ID
      • Store meeting space availability
      • Create Google Calendar
    • Device Management
      • Create device
        POST
      • Create device sensors
        POST
      • Create or update admin unlock codes
        POST
      • Upload meeting space screenshot
        POST
    • Authentication
      • Create authorization token
    • Messaging
      • Send message to Android device
    • Booking
      • Send meeting space state by booking ID
      • Create or update booking
  1. Device Management

Create device sensors

POST
/meetingspace/device_sensors
Device Management
Last modified:2025-05-29 13:03:16
x-usage:iot
Create device sensors which will later be used to control sensors
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/meetingspace/device_sensors' \
--header 'Content-Type: application/json' \
--data-raw '{
    "device_id": "c10285889b3775ec",
    "device_sensors": [
        {
            "device": "lock",
            "manufacture": "string",
            "config": {
                "state": [
                    {
                        "operation": "string",
                        "value": "string"
                    }
                ],
                "operation_values": [
                    {}
                ],
                "operations": {},
                "status": {}
            },
            "sensors": [
                {
                    "name": "string",
                    "id": "string",
                    "db_id": 0
                }
            ],
            "db_id": 0
        }
    ]
}'

Request

Body Params application/json
device_id
string 
required
Example:
c10285889b3775ec
device_sensors
array[object (DeviceSensor) {5}] 
required
device
enum<string> 
optional
Allowed values:
lockac_fandc_fanlightled_ring
manufacture
string 
optional
config
object 
optional
sensors
array [object {3}] 
optional
db_id
integer 
optional
Examples

Responses

🟢200OK
Device sensors created successfully
This response does not have a body.
Previous
Create device
Next
Create or update admin unlock codes
Built with