FluentaAPI

Get leaderboard

getLeaderboardPermiso read

The «Clasificación» of one plant day: every operario’s units, meta, efficiency and «Facturado», best first.

GET/v1/external/organizations/{organizationId}/analytics/leaderboard

day is optional: without it, the plant’s today on the organization’s own clock, as on every single-day route of the API externa.

Autorización

apiToken
AutorizaciónBearer <token>

An API token created in Configuración › Tokens de API, or a connected app’s access token

En: header

Parámetros de ruta

organizationId*number

Parámetros de consulta

day?string

Plant day, YYYY-MM-DD on the plant’s clock. Omitted: the plant’s today, on its own clock.

Patrón^\d{4}-\d{2}-\d{2}$
Longitudlength <= 10

Respuestas

application/json

application/json

curl -X GET "https://api.fluenta.io/v1/external/organizations/0/analytics/leaderboard" \  -H "Authorization: Bearer fluenta_live_XXXX"
{  "day": "string",  "operators": [    {      "operatorId": 0,      "operatorName": "string",      "units": 0,      "goal": 0,      "efficiency": 0,      "billedAmount": 0    }  ]}