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

Dashboard Template Schema

Schema-ID
dashboard_template
Collection
dashboard_templates
Permissions
  • Lezendashboard_template_view
  • Aanmakendashboard_template_create
  • Wijzigendashboard_template_edit
  • Verwijderendashboard_template_delete

Velden

Dashboard Template Schema

dashboard_templates4 permissions

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

namestringvereist

Display name of the template

1–100 tekens
descriptionstringoptioneel
max. 500 tekensnullable
scopestringvereist

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

usertenant
userIduuidoptioneel

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

nullable
configobjectvereist
versionintegervereist
read-only
layoutobjectvereist
presetstringvereist
1-col2-col-sidebar2-col-equal3-col-equal
customWidthsstringoptioneel
nullable
metricsobject[]vereist
idstringvereist
1–100 tekens
typestringvereist
1–100 tekens
settingsobjectvereist
columnSpanintegeroptioneel

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

1 – 6
columnsarray[]vereist
isDefaultbooleanoptioneel

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

Default: false
isSharedbooleanoptioneel

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

Default: false
sharedWithUserIdsuuid[]optioneel

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

max. 200 itemsnullable
teamIdsuuid[]optioneel

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

max. 100 itemsnullable
isPredefinedbooleanoptioneel

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

Default: falseread-only
predefinedKeystringoptioneel

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

max. 100 tekensread-onlynullable
iconstringoptioneel
max. 50 tekensnullable
colorstringoptioneel
max. 20 tekensnullable

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

Zoeken