API · v1 · stabiel
CODEMETA OSDeveloper Center
NL
Console openen
Entity · announcement_templates

Announcement Template Schema

Schema-ID
announcement_template
Collection
announcement_templates
Permissions
  • Lezenannouncement_template_view
  • Aanmakenannouncement_template_create
  • Wijzigenannouncement_template_edit
  • Verwijderenannouncement_template_delete

Velden

Announcement Template Schema

announcement_templates4 permissions

Reusable blueprint for creating announcements

namestringvereist

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

1–200 tekens
descriptionstringoptioneel

Optional hint about when to use this template

max. 500 tekens
statusstringvereist

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

ACTIVEARCHIVED
titlestringoptioneel

Pre-filled announcement title. Supports the placeholders below.

max. 300 tekens
contentstringoptioneel

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

max. 50000 tekens
prioritystringoptioneel

Pre-filled announcement priority

LOWNORMALHIGHCRITICAL
showAsBannerbooleanoptioneel

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

bannerTextstringoptioneel

Pre-filled one-line banner text

max. 200 tekens
bannerColorstringoptioneel

Pre-filled banner background colour (hex)

max. 20 tekensnullable
requiresConfirmationbooleanoptioneel

Pre-fills whether readers must confirm they have read it

Standaard-endpoints

Deze resource volgt het generieke CRUD-contract van het platform. Lees de conventies voor paginering, idempotentie, optimistic locking en audit. De belangrijkste endpoints:

  • GET /api/v1/announcement_templates — Lijst, gepagineerd + filterbaar
  • GET /api/v1/announcement_templates/<id> — Enkele entity
  • POST /api/v1/announcement_templates — Aanmaken
  • PATCH /api/v1/announcement_templates/<id> — Gedeeltelijke update
  • DELETE /api/v1/announcement_templates/<id> — Soft-delete
  • GET /api/v1/announcement_templates/<id>/timeline — Audit + activiteiten

Zoeken