Eliminar Values de un Device

Este endpoint borra los Values de un Device para un rango de tiempo específico.

Solicitud HTTP

Para eliminar los valores de un Device para un rango de tiempo específico, haz una petición POST a la siguiente URL:

HTTP Method

URL

POST

https://api.netux.com/api/v2.0/devices/<device_key>/_/values/delete/

Parámetros de ruta

Parameter

Type

Description

device_key

String

The id or label of the Device, label should use the prefix ~

Parámetros de consulta

Parameter

Type

Use

Description

token

String

Authentication

Authentication Token can optionally be sent as a query parameter.

startDate

Long

Required Parameter

Start date in milliseconds

endDate

Long

Required Parameter

End date in milliseconds

Cabecera

Parameter

Required?

Description

X-Auth-Token

Yes

Authentication Token of account

$ curl -X POST 'https://api.netux.com/api/v2.0/devices/<device_key>/_/values/delete/?startDate=1632614400000&endDate=1632614500000' \
 -H 'X-Auth-Token: oaXBo6ODhIjPsusNRPUGIK4d72bc73'

Respuesta

Devuelve un Task Id del proceso asíncrono.

{
  "task": {
    "id": "5df7b7501a9ca5714e7a1301"
  }
}
{
    "code": 400001,
    "message": "Validation Error.",
    "detail": {
        ....
    }
}
{
    "code": 401001,
    "message": "Authentication credentials were not provided.",
    "detail": "Authentication credentials were not provided."
}