Notifications
Notifications reçues et leur lecture. 4 opérations.
app_notifications
Table
Notifications reçues (celles du poste, pour un agent). Outils : nara_notifications / nara_mark_notification_read.
Colonnes (10)
| Nom | Type | À savoir |
|---|---|---|
| id | string (uuid) | — |
| org_id | string (uuid) | — |
| recipient_id | string (uuid) | (membre) |
| type | string | — |
| title | string | — |
| body | string | — |
| link | string | — |
| metadata | objet | JSON (objet, tableau ou scalaire) |
| is_read | boolean | — |
| created_at | string (date-time) | — |
- GET
/api/v1/db/app_notificationsLire app_notifications
Notifications reçues (celles du poste, pour un agent).
Droit : notifications:read - POST
/api/v1/db/app_notificationsCréer dans app_notifications
Un objet ou un tableau d'objets. Insert rejouable : poser
Idempotency-Key(la porte rejoue la réponse pendant 24 h), ou fournir son propreid(uuid) etPrefer: resolution=ignore-duplicates.Prefer: return=representationrend la ligne (jamais sur une table à colonnes masquées).Droit : notifications:writeAccepte Idempotency-Key - PATCH
/api/v1/db/app_notificationsModifier app_notifications
Au moins un filtre est obligatoire (400 FILTER_REQUIRED) ; au plus 1000 lignes touchées (409 TOO_MANY_ROWS_AFFECTED) ; aucune ressource imbriquée dans select. Zéro ligne touchée → 404 NO_ROWS_AFFECTED. Verrou optimiste : ajouter version=eq.<N>.
Droit : notifications:writeAccepte Idempotency-Key - DELETE
/api/v1/db/app_notificationsSupprimer dans app_notifications
Au moins un filtre est obligatoire (400 FILTER_REQUIRED) ; au plus 1000 lignes (409). Zéro ligne → 404 NO_ROWS_AFFECTED.
Droit : notifications:writeAccepte Idempotency-Key