Describes the JSON object of a Device Type.
A Device Type in Ubidots can store parameters that can be applied to a new Device upon creation.
Property | Type | Description |
---|---|---|
id | String | Id of Device Type |
label | String | Label of Device Type |
name | String | Name of Device Type |
createdAt | String | Date Device Type was created |
description | String | Description of Device Type |
deviceColor | String | HTML Color of Device Type |
deviceIcon | String | Device Type Icon |
variableColor | String | HTML Color of Variables |
syntheticVariableColor | String | HTML Color of Synthetic Variables |
variables | String Array | List of Variable Ids that belong to the Device Type |
properties | Array | Array of Device properties |
tasks | Array | Tasks of Device Type |
url | String | Url of Device Type |
Device type
{
"url": "https://industrial.api.ubidots.com/api/v2.0/device_types/5e1f7e5789f9bd7c4e7f1e2c",
"id": "5e1f7e5789f9bd7c4e7f1e2c",
"name": "Type name",
"label": "type-label",
"description": "La description aquella",
"deviceColor": "#3BA9F5",
"deviceIcon": "pencil",
"variableColor": "#FFAE58",
"syntheticVariableColor": "#",
"variables": [],
"properties": [
{
"key": "p1",
"text": "P1",
"type": "text",
"value": "Text as test",
"description": "Description 1"
},
{
"key": "p2",
"text": "P2",
"type": "number",
"value": 10.0,
"description": "Description 2"
},
{
"key": "p3",
"text": "P3",
"type": "list",
"value": "",
"choices": [
"t1",
"t2"
],
"options": [
{
"text": "t1",
"value": "t1"
},
{
"text": "t2",
"value": "t2"
}
],
"description": "Description 3"
},
{
"key": "p4",
"text": "P4",
"type": "date",
"value": null,
"description": "Description 4"
},
{
"key": "p5",
"text": "P5",
"type": "boolean",
"value": true,
"description": "Description 5"
},
{
"key": "p6",
"text": "P6",
"type": "json",
"value": {},
"description": "Description 6"
}
],
"tasks": [],
"createdAt": "2020-01-15T21:04:23.602975Z"
}