FluentaAPI
Plant

List module rest times

listModuleRestTimesPermission read

One «módulo»’s «descansos» (breaks), every weekday alike, by start: no goal is owed inside one. On a «jornada continua» weekday (`getSettings`) none applies.

GET/v1/external/organizations/{organizationId}/modules/{moduleId}/rest-times

Answers the «Descansos por módulo» of «Configuración» for one «módulo»: its break windows (breakfast, lunch, a «pausa activa»), ordered by start. During one the «puestos» go grey and the hour’s goal shrinks by the minutes lost.

Each row is a window from startHour:startMin to endHour:endMin, hours 0 to 23 and minutes 0 to 59 on the plant’s clock (getSettings.timezone); the same rows apply on every worked weekday, and none applies on a «jornada continua» weekday (getSettings.shift.continuousDays). A «módulo» without breaks answers restTimes: [].

moduleId comes from listModules or getFloor. getOrganization answers the same rows for every «módulo» at once.

A «descanso» is the whole «módulo»’s; a «pausa» is one «operario»’s stop at one «puesto» (pausedAt on a «puesto», getPauses).

Not paged: the whole answer comes in one response.

Plan: on every plan, Light included. A «token de API» reads it in any organization the user who created it belongs to; a connected AI app (a «conexión») reads it only where the organization has «Conectar con IA» (getPlan.features.aiConnector, a Pro feature), and answers 403 PLAN_LIMIT elsewhere.

Rate limit: one request of the credential’s ordinary budget in this organization (getPlan answers the numbers); past it, 429 RATE_LIMITED with Retry-After in seconds.

Authorization

apiToken
AuthorizationBearer <token>

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

In: header

Path Parameters

moduleId*integer

The «módulo»: an id of listModules or getFloor, or the moduleId of a «puesto».

organizationId*integer

The organization, from getMe or listOrganizations.

Response Body

application/json

application/json

curl -X GET "https://api.fluenta.io/v1/external/organizations/0/modules/0/rest-times" \  -H "Authorization: Bearer fluenta_live_XXXX"
{  "moduleId": 0,  "moduleName": "string",  "restTimes": [    {      "id": 0,      "startHour": 0,      "startMin": 0,      "endHour": 0,      "endMin": 0    }  ]}