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/

Query Parameter

ParameterTypeUseDescription
tokenStringAuthenticationAuthentication Token can optionally be sent as a query parameter.
pageNumberPaginationReturns the corresponding page of the result
page_sizeNumberPaginationNumber of items per page, if not provided takes default values of 50 (for variables 200)
created_atDateSortSort all Variables based on date created. Default descending.
labelStringSortSort by label
nameStringSortSort by name
fieldsComma separated listDynamic FieldsSpecify the fields that should be obtained in the response object.
searchStringSearchAllows to search on the following fields with one request label, name, description, username, firstName, lastName
idIdFilterFilter by Id
nameStringFilterFilter by name
labelStringFilterFilter by label
descriptionStringFilterFilter by description
variablesObjectFilterFilter by Variables
propertiesObjectFilterFilter by properties
tasksObjectFilterFilter by tasks
deviceColorStringFilterFilter by deviceColor
deviceIconStringFilterFilter by deviceIcon
variableColorStringFilterFilter by Variable color
syntheticVariableColorStringFilterFilter by Synthetic Variable Color
createdAtDateFilterFilter by date created

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.