Este endpoint exporta datos de una Variable en el formato seleccionado y los envía al email especificado.
Solicitud HTTP
Para exportar datos de una Variable, haz una petición POST a la siguiente URL:
HTTP Method | URL |
---|---|
POST | https://api.netux.com/api/v2.0/variables/<variable_id>/_/values/export/ |
Para exportar datos de una Variable de un Device, haz una petición POST a la siguiente URL:
HTTP Method | URL |
---|---|
POST | https://api.netux.com/api/v2.0/devices/<device_key>/variables/<variable_key>/_/values/export/ |
Parámetros de ruta
Parameter | Type | Description |
---|---|---|
variable_id | String | The id of the Variable |
Parámetros de consulta
Parameter | Type | Use | Description |
---|---|---|---|
token | String | Authentication | Authentication Token can optionally be sent as a query parameter. |
email | String | Required Parameter | Email to which exported data is sent to |
startDate | Long | Required Parameter | In milliseconds |
endDate | Long | Required Parameter | In milliseconds |
timezone | String | Default is "UTC" Allowed values are all times zones included in the pytz.all_timezones | |
format | String | Allowed values: csv | txt | json | xlsx Default is csv. |
Cabecera
Parameter | Required? | Description |
---|---|---|
X-Auth-Token | Yes | Authentication Token of account |
$ curl -X POST 'https://api.netux.com/api/v2.0/variables/<variable_id>/_/values/export/[email protected]&startDate=0&endDate=9999999' \
-H 'X-Auth-Token: oaXBo6ODhIjPsusNRPUGIK4d72bc73' \
-d '{"email": "[email protected]"}'
Respuesta
Devuelve un Task Id del proceso asíncrono.
{
"task": {
"id": "a26aee8b4d186455"
}
}
{
"code": 400001,
"message": "Validation Error.",
"detail": {
....
}
}
{
"code": 401001,
"message": "Authentication credentials were not provided.",
"detail": "Authentication credentials were not provided."
}