Administration

Envoie une notification à TOUS les users actifs de l'org courante.

Envoie une notification à TOUS les users actifs de l'org courante.

Body JSON :
  - title (str, required) : titre court (<=200 chars).
  - message (str, optional) : corps du message.
  - action_url (str, optional) : chemin relatif (commence par "/") pour
    deeplink dans l'UI. Open redirect bloqué par notification_service.
  - priority (str, optional) : critical|high|normal|low (défaut normal).
  - type (str, optional) : info|alert|reminder|escalation (défaut info).
  - target_roles (list[str], optional) : restreint aux users qui ont au
    moins un de ces rôles (par `Role.name`). None = tous les members actifs.
  - exclude_self (bool, optional, défaut True) : ne pas notifier l'actor.

Réponse 200 : `{sent: N, targets: M, skipped: K}`.

Audit log `notification_broadcast` posté avec organisation_id, payload
sans le message complet (PII potentielle) et statistiques d'envoi.

Permissions requises : notifications:send_org_wide

post/api/v1/admin/notifications/broadcast

Request

  • Base URL: https://erp.eyeot.fr/api/v1
  • URL: https://erp.eyeot.fr/api/v1/api/v1/admin/notifications/broadcast
  • Auth: one of:
    • HTTP bearer
    • HTTP bearer

Request body

action_urlstring nullable
exclude_selfboolean
messagestring nullable
priority'critical' | 'high' | 'normal' | 'low'
target_rolesstring[] nullable
titlestring required
type'reminder' | 'escalation' | 'info' | 'alert'

Response

Succès — payload {data, meta} (cf. API-GUIDE §3.1)

Changes

No recorded changes to this operation across all 1 revision of this API.