FluentaAPI

List stations

listStationsPermiso read

The puestos (stations) of one módulo as the live board reads them now: operación, seated operario, current referencia, units this hour and today.

GET/v1/external/organizations/{organizationId}/modules/{moduleId}/stations

Answers the «puestos» (stations) of one «módulo» in the board’s order, each as getStation answers it: the «operación» sewn there (name), its position, the seated «operario» (operator, null when empty), the «referencia» it is on (currentReference, null when none) and its counts of the hour and of the day, as the «Tablero en tiempo real» reads them now. A «módulo» with no «puesto» answers an empty list.

moduleId comes from listModules or getFloor; one that is unknown or belongs to another organization answers 404 MODULE_NOT_FOUND. Each id is the stationId of getStation and of the station reports. The answer carries no today or currentHour: read them from getSettings.

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

moduleId*integer

The «módulo» (a production line): the id of one from listModules. Unknown or of another organization: 404 MODULE_NOT_FOUND.

organizationId*integer

The organization, from getMe or listOrganizations.

Respuestas

application/json

application/json

curl -X GET "https://api.fluenta.io/v1/external/organizations/0/modules/0/stations" \  -H "Authorization: Bearer fluenta_live_XXXX"
[  {    "id": 0,    "name": "string",    "position": 0,    "moduleId": 0,    "isBilling": true,    "isEntry": true,    "isRework": true,    "operator": {      "id": 0,      "name": "string",      "active": true    },    "operatorActive": true,    "pausedAt": "2019-08-24T14:15:22Z",    "currentReference": {      "id": 0,      "name": "string",      "stationGoal": 0,      "price": 0    },    "currentStep": 0,    "stepUnitsToday": {      "whole": 0,      "step1": 0,      "step2": 0    },    "goalReference": 0,    "hourGoal": 0,    "unitsThisHour": 0,    "unitsToday": 0,    "color": "GRAY",    "total": 0,    "totalCompleted": 0,    "remaining": 0,    "reworkCurrent": 0,    "reworkTotal": 0  }]