Este endpoint devuelve un Device Type específico.
Solicitud HTTP
Para obtener un Device Type específico, haz una petición GET a la siguiente URL:
HTTP Method | URL |
---|---|
GET |
|
Parámetros de ruta
Parameter | Type | Description |
---|---|---|
| String | The id or label of the Device Type, label should use the prefix |
Parámetros de consulta
Parameter | Type | Use | Description |
---|---|---|---|
| String | Authentication | Authentication Token can optionally be sent as a query parameter |
| Comma separated list | Dynamic Fields | Specify the fields that should be obtained in the response object |
Cabecera
Parameter | Required? | Description |
---|---|---|
| Yes | Authentication Token of account |
$ curl -X GET 'https://api.netux.com/api/v2.0/device_types/<device_type_key>/' \
-H 'X-Auth-Token: oaXBo6ODhIjPsusNRPUGIK4d72bc73'
Respuesta
Devuelve un objeto Device Type con el Device Type solicitado.
{
"url": "https://api.netux.com/api/v2.0/device_types/5e1f7e5789f9bd7c4e7f1e2c",
"id": "5e1f7e5789f9bd7c4e7f1e2c",
"name": "el type aquel",
"label": "el-type-quel",
"description": "La description aquella",
"deviceColor": "#3BA9F5",
"deviceIcon": "pencil",
"variableColor": "#FFAE58",
"syntheticVariableColor": "#",
"variables": [],
"properties": [],
"tasks": [],
"createdAt": "2020-01-15T21:04:23.602975Z"
}
{
"code": 400001,
"message": "Validation Error.",
"detail": {
....
}
}
{
"code": 401001,
"message": "Authentication credentials were not provided.",
"detail": "Authentication credentials were not provided."
}