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

Dashboard Template Schema

ID du schéma
dashboard_template
Collection
dashboard_templates
Autorisations
  • Liredashboard_template_view
  • Créerdashboard_template_create
  • Modifierdashboard_template_edit
  • Supprimerdashboard_template_delete

Champs

Dashboard Template Schema

dashboard_templates4 autorisations

Schema for validating dashboard templates (tenant- or user-scoped layout presets)

namestringobligatoire

Display name of the template

1–100 caractères
descriptionstringfacultatif
max. 500 caractèresnullable
scopestringobligatoire

user = private/personal or shared by a user; tenant = tenant-wide template

usertenant
userIduuidfacultatif

Owner userId (for scope=user). Set by the server.

nullable
configobjectobligatoire
versionintegerobligatoire
lecture seule
layoutobjectobligatoire
presetstringobligatoire
1-col2-col-sidebar2-col-equal3-col-equal
customWidthsstringfacultatif
nullable
metricsobject[]obligatoire
idstringobligatoire
1–100 caractères
typestringobligatoire
1–100 caractères
settingsobjectobligatoire
columnSpanintegerfacultatif

Number of content-grid columns this widget should span. Default 1. Only meaningful in columns[], ignored in metrics.

1 – 6
columnsarray[]obligatoire
isDefaultbooleanfacultatif

For scope=user: active template for the owner on login. For scope=tenant: tenant default.

Par défaut : false
isSharedbooleanfacultatif

Only meaningful for scope=user. Makes the template readable by all tenant users.

Par défaut : false
sharedWithUserIdsuuid[]facultatif

For scope=user: explicit per-user read grants, independent of isShared. Mirrors dashboard_widget_group sharing (ADR 0164).

max. 200 élémentsnullable
teamIdsuuid[]facultatif

For scope=user: org-unit/team IDs whose members may read the template (ADR 0164).

max. 100 élémentsnullable
isPredefinedbooleanfacultatif

Read-only template seeded by the platform; protected from editing/deletion.

Par défaut : falselecture seule
predefinedKeystringfacultatif

Stable key for predefined templates (e.g. role preset carry-over).

max. 100 caractèreslecture seulenullable
iconstringfacultatif
max. 50 caractèresnullable
colorstringfacultatif
max. 20 caractèresnullable

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

Recherche