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

Announcement Template Schema

ID du schéma
announcement_template
Collection
announcement_templates
Autorisations
  • Lireannouncement_template_view
  • Créerannouncement_template_create
  • Modifierannouncement_template_edit
  • Supprimerannouncement_template_delete

Champs

Announcement Template Schema

announcement_templates4 autorisations

Reusable blueprint for creating announcements

namestringobligatoire

Template name shown in the picker (e.g. "Neuer Mitarbeiter")

1–200 caractères
descriptionstringfacultatif

Optional hint about when to use this template

max. 500 caractères
statusstringobligatoire

Archived templates stay available for reference but are hidden from the picker

ACTIVEARCHIVED
titlestringfacultatif

Pre-filled announcement title. Supports the placeholders below.

max. 300 caractères
contentstringfacultatif

Pre-filled rich-text body (HTML from Tiptap)

max. 50000 caractères
prioritystringfacultatif

Pre-filled announcement priority

LOWNORMALHIGHCRITICAL
showAsBannerbooleanfacultatif

Pre-fills whether the announcement is shown as a banner bar

bannerTextstringfacultatif

Pre-filled one-line banner text

max. 200 caractères
bannerColorstringfacultatif

Pre-filled banner background colour (hex)

max. 20 caractèresnullable
requiresConfirmationbooleanfacultatif

Pre-fills whether readers must confirm they have read it

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

Recherche