API · v1 · estable
CODEMETA OSDeveloper Center
ES
Abrir la consola
Entidad · announcement_templates

Announcement Template Schema

ID del esquema
announcement_template
Colección
announcement_templates
Permisos
  • Leerannouncement_template_view
  • Crearannouncement_template_create
  • Modificarannouncement_template_edit
  • Eliminarannouncement_template_delete

Campos

Announcement Template Schema

announcement_templates4 permisos

Reusable blueprint for creating announcements

namestringobligatorio

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

1–200 caracteres
descriptionstringopcional

Optional hint about when to use this template

máx. 500 caracteres
statusstringobligatorio

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

ACTIVEARCHIVED
titlestringopcional

Pre-filled announcement title. Supports the placeholders below.

máx. 300 caracteres
contentstringopcional

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

máx. 50000 caracteres
prioritystringopcional

Pre-filled announcement priority

LOWNORMALHIGHCRITICAL
showAsBannerbooleanopcional

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

bannerTextstringopcional

Pre-filled one-line banner text

máx. 200 caracteres
bannerColorstringopcional

Pre-filled banner background colour (hex)

máx. 20 caracteresadmite null
requiresConfirmationbooleanopcional

Pre-fills whether readers must confirm they have read it

Endpoints estándar

Este recurso sigue el contrato CRUD genérico de la plataforma. Lea las convenciones sobre paginación, idempotencia, bloqueo optimista y auditoría. Los endpoints principales:

  • GET /api/v1/announcement_templates — Lista, paginada y filtrable
  • GET /api/v1/announcement_templates/<id> — Una entidad
  • POST /api/v1/announcement_templates — Crear
  • PATCH /api/v1/announcement_templates/<id> — Actualización parcial
  • DELETE /api/v1/announcement_templates/<id> — Eliminación lógica
  • GET /api/v1/announcement_templates/<id>/timeline — Auditoría y actividades

Búsqueda