Sensors
Add sensors to device
Attach sensors to a device by template IDs.
Required scope: sensors:write
post/api/v2/devices/{id}/sensors
Request
- Base URL: https://api.kiloiot.io
- URL: https://api.kiloiot.io/api/v2/devices/{id}/sensors
- Auth: API key in header X-API-Key and API key in header X-Organization-Id
Path parameters
idstring required
Device ID
Query parameters
organizationIdstring required
Organization ID
Request body
Response
OK
Example response
{
"dataSendingInterval": {
"unit": "minute",
"value": 60
},
"images": [
{
"contentType": "image/jpeg",
"createdAt": "2026-01-02T15:04:05Z",
"filename": "device-photo.jpg",
"id": "550e8400-e29b-41d4-a716-446655440000",
"sizeBytes": 123456,
"url": "https://media.example.com/v1/media/{id}"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.