Obtener todos los Device Types

Este endpoint devuelve todos los Device Types.

Solicitud HTTP

Para obtener todos los Device Types, haz una petición GET a la siguiente URL:

HTTP MethodURL
GEThttps://api.netux.com/api/v2.0/device_types/

Parámetros de consulta

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

Cabecera

ParameterRequired?Description
X-Auth-TokenYesAuthentication Token of account
$ curl -X GET 'https://api.netux.com/api/v2.0/device_types/' \
 -H 'X-Auth-Token: oaXBo6ODhIjPsusNRPUGIK4d72bc73' \

Respuesta

Devuelve un objeto con un array results que contiene todos los Device Types.

{
    "count": 1,
    "next": null,
    "previous": null,
    "results": [
        {
            "url": "https://api.netux.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."
}