Skip to main content
POST
Exportar detalle de visitas de un tracker específico

Authorizations

Authorization
string
header
required

Token de sesión Better Auth o API token (atk_...) en el header Authorization: Bearer <token>. Los JWT legacy ya no son válidos.

Path Parameters

assetId
string
required

ID del activo (MongoDB ObjectId)

Query Parameters

from
string
required

Fecha de inicio (ejemplo: 01/01/2025 o 01/01/2025 08:30)

to
string
required

Fecha de fin (ejemplo: 31/01/2025 o 31/01/2025 17:45)

Body

application/json
format
enum<string>
required

Formato de archivo a generar (pdf o xlsx).

Available options:
pdf,
xlsx
Example:

"pdf"

minDuration
integer
default:180

Duración mínima de permanencia en segundos (default: 180 = 3 min)

Required range: x >= 0
Example:

180

Response

Archivo generado exitosamente

The response is of type file.