API · v1 · stable
CODEMETA OSDeveloper Center
FR
Ouvrir la console
Entité · announcements

Announcement Schema

ID du schéma
announcement
Collection
announcements
Autorisations
  • Lireannouncement_view
  • Créerannouncement_create
  • Modifierannouncement_edit
  • Supprimerannouncement_delete

Champs

Announcement Schema

announcements4 autorisations

Schema for tenant-wide announcements with banner display and read confirmations

titlestringobligatoire

Announcement title

1–300 caractères
contentstringfacultatif

Rich-text body (HTML from Tiptap)

max. 50000 caractères
statusstringobligatoire

Publication status

DRAFTPUBLISHEDARCHIVED
prioritystringfacultatif

Announcement priority

LOWNORMALHIGHCRITICAL
showAsBannerbooleanfacultatif

Whether to display as a top-of-page banner bar

bannerTextstringfacultatif

Short one-line text shown in the banner bar

max. 200 caractères
bannerColorstringfacultatif

Custom banner background color (hex)

max. 20 caractèresnullable
publishedAtdatetimefacultatif

When the announcement was published

nullable
expiresAtdatetimefacultatif

When the announcement expires (banner auto-hides)

nullable
requiresConfirmationbooleanfacultatif

Whether users must explicitly confirm they have read it

authorIdstringfacultatif

User ID of the announcement author

Endpoints standard

Cette ressource suit le contrat CRUD générique de la plateforme. Lisez les conventions pour la pagination, l'idempotence, le verrouillage optimiste et l'audit. Les endpoints principaux :

  • GET /api/v1/announcements — Liste, paginée et filtrable
  • GET /api/v1/announcements/<id> — Une entité
  • POST /api/v1/announcements — Créer
  • PATCH /api/v1/announcements/<id> — Mise à jour partielle
  • DELETE /api/v1/announcements/<id> — Suppression logique
  • GET /api/v1/announcements/<id>/timeline — Audit et activités

Recherche