Comunicados#
Releases (comunicados): messages that KIO sends to client business users, and optionally to other email addresses, by email and app notification.Concepts#
Comunicado: a subject, description and content rendered with an HTML template (see the Comunicado Templates subfolder).
Recipients: _business_users (picked with Find comunicado recipients by location, phase, role and language) and external_emails. Deactivated business users are removed from every comunicado. Sending: immediately with Send a comunicado now, or automatically at each of its programmed_dates, sent by a scheduler that calls Send programmed comunicados. Business users also get an app notification and can open the comunicado in the app. Visibility: KIO users with comunicados-items-get see every comunicado; others see the ones they created or that target their locations.
The two cron endpoints are public and rely on secret paths.
Subfolders#
Comunicado Templates: email templates.
Endpoints#
Comunicados visible to the user, with recipient counts.POST /v1/comunicados/itemGET /v1/comunicados/item/{id}PATCH /v1/comunicados/item/{id}DELETE /v1/comunicados/item/{id}GET /v1/comunicados/item/{id}/launchPOST /v1/comunicados/business-users/searchBusiness users that match location, role and language filters.GET /v1/comunicados/businessitem/{id}A received comunicado, rendered for the business user.GET /v1/comunicados/cron/19kn977LmV36d1H0r1Q0Jk9xJd63243QSends the comunicados programmed for now (scheduler).GET /v1/comunicados/cron/domo/Y2hyb25lX2RvbW9fMDdfMDRfMjAyMQEmails today's movements CSV to Domo (scheduler).Source#
Router: routes/v1/comunicados.js
Controller: controllers/comunicados.js
Model: models/comunicado.js
Services: services/notification.js, services/mailing.js
Modified at 2026-10-05 22:17:25