IoT Stadium

API Documentation

Device

Device - GET Device Details

Get

{{url_iot_backend}}/ext/devices/:id
[
	{
		"key": "Accept",
		"value": "application/json"
	},
	{
		"key": "tenant",
		"value": "{{token}}",
		"type": "text"
	}
],

Parameter

Field Type Description
id Text

The ID of the device.

{
    "message": "success",
    "code": 200,
    "data": {
        "devices": {
            "id": 604,
            "device_name": "test add device HTTP",
            "device_type": {
                "id": 1,
                "device_type_name": "Dragino LHT52",
                "is_predefined": 1,
                "is_image_model_type": 0
            },
            "device_is_public": 2,
            "tenant_id": 37,
            "label": null,
            "description": null,
            "created_at": "2024-06-04 03:44:17",
            "updated_at": "2024-06-04 03:44:17",
            "last_seen": null,
            "location_id": null,
            "uuid": "2147a31a-c300-436f-a076-a4cd27e375a8",
            "device_connectivity_type_id": 2,
            "device_network_id": 2,
            "deveui": "",
            "is_collection": 0,
            "device_type_id": 1,
            "hardware_id": "",
            "access_type": null,
            "group_device": [],
            "customers": [],
            "location_custom_field": [],
            "telemetry_index": {
                "uuid": "2147a31a-c300-436f-a076-a4cd27e375a8",
                "id": 425,
                "connection_status": []
            },
            "location": null,
            "device_image_default": [],
            "device_connectivity_type": {
                "id": 2,
                "name": "HTTP"
            },
            "device_network": {
                "id": 2,
                "name": "Helium"
            },
            "device_collection_detail": null,
            "device_thethings": null,
            "device_overview": {
                "id": 200,
                "dashboard_name": "Overview for Device test add device HTTP",
                "device_id_overview_dashboard": 604
            }
        }
    }
}
{
    "message": "data not found",
    "errors": [
        {
            "message": "data not found",
            "field": "device"
        }
    ],
    "code": 404
}                                                
{
    "message": "Not Allowed",
    "error": {
        "message": "Not Allowed",
        "field": "user"
    },
    "code": 403
}