Dashboard Template Schema
Campos
Dashboard Template Schema
Schema for validating dashboard templates (tenant- or user-scoped layout presets)
name
Display name of the template
description
scope
user = private/personal or shared by a user; tenant = tenant-wide template
usertenantuserId
Owner userId (for scope=user). Set by the server.
isDefault
For scope=user: active template for the owner on login. For scope=tenant: tenant default.
teamIds
For scope=user: org-unit/team IDs whose members may read the template (ADR 0164).
isPredefined
Read-only template seeded by the platform; protected from editing/deletion.
predefinedKey
Stable key for predefined templates (e.g. role preset carry-over).
icon
color
Ningún campo coincide con el filtro.
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/dashboard_templates— Lista, paginada y filtrableGET /api/v1/dashboard_templates/<id>— Una entidadPOST /api/v1/dashboard_templates— CrearPATCH /api/v1/dashboard_templates/<id>— Actualización parcialDELETE /api/v1/dashboard_templates/<id>— Eliminación lógicaGET /api/v1/dashboard_templates/<id>/timeline— Auditoría y actividades