Get all Device Types

This endpoint retrieves all Device Types.

Request

To retrieve all Device Types please make a GET request to the following URL:

HTTP MethodURL
GEThttps://industrial.api.ubidots.com/api/v2.0/device_types/

Header

ParameterRequired?Description
X-Auth-TokenYes[Authentication Token] (/reference/authentication) of account
$ curl -X GET 'https://industrial.api.ubidots.com/api/v2.0/device_types/' \
 -H 'X-Auth-Token: oaXBo6ODhIjPsusNRPUGIK4d72bc73' \
{
    "count": 1,
    "next": null,
    "previous": null,
    "results": [
        {
            "url": "https://industrial.api.ubidots.com/api/v2.0/device_types/5e1f776089f9bd7c4e7f1e2b",
            "id": "5e1f776089f9bd7c4e7f1e2b",
            "name": "el type aquel",
            "label": "el-type-aquel",
            "description": "La description aquella",
            "deviceColor": "#3BA9F5",
            "deviceIcon": null,
            "variableColor": "#FFAE58",
            "syntheticVariableColor": "#5AD0C2",
            "variables": [],
            "properties": [],
            "tasks": [],
            "createdAt": "2020-01-15T20:34:40.935322Z"
        }
    ]
}
{
    "code": 400001,
    "message": "Validation Error.",
    "detail": {
        ....
    }
}
{
    "code": 401001,
    "message": "Authentication credentials were not provided.",
    "detail": "Authentication credentials were not provided."
}

Response

An object with an array results containing all Device Types.