API · v1 · stable
CODEMETA OSDeveloper Center
EN
Open console
Entity · dashboard_templates

Dashboard Template Schema

Schema ID
dashboard_template
Collection
dashboard_templates
Permissions
  • Readdashboard_template_view
  • Createdashboard_template_create
  • Editdashboard_template_edit
  • Deletedashboard_template_delete

Fields

Dashboard Template Schema

dashboard_templates4 permissions

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

namestringrequired

Display name of the template

1–100 characters
descriptionstringoptional
max 500 charactersnullable
scopestringrequired

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

usertenant
userIduuidoptional

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

nullable
configobjectrequired
versionintegerrequired
read-only
layoutobjectrequired
presetstringrequired
1-col2-col-sidebar2-col-equal3-col-equal
customWidthsstringoptional
nullable
metricsobject[]required
idstringrequired
1–100 characters
typestringrequired
1–100 characters
settingsobjectrequired
columnSpanintegeroptional

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

1 – 6
columnsarray[]required
isDefaultbooleanoptional

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

Default: false
isSharedbooleanoptional

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

Default: false
sharedWithUserIdsuuid[]optional

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

max 200 itemsnullable
teamIdsuuid[]optional

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

max 100 itemsnullable
isPredefinedbooleanoptional

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

Default: falseread-only
predefinedKeystringoptional

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

max 100 charactersread-onlynullable
iconstringoptional
max 50 charactersnullable
colorstringoptional
max 20 charactersnullable

Standard endpoints

This resource follows the platform's generic CRUD contract. Read the conventions for pagination, idempotency, optimistic locking and audit. The most important endpoints:

  • GET /api/v1/dashboard_templates — List, paginated + filterable
  • GET /api/v1/dashboard_templates/<id> — Single entity
  • POST /api/v1/dashboard_templates — Create
  • PATCH /api/v1/dashboard_templates/<id> — Partial update
  • DELETE /api/v1/dashboard_templates/<id> — Soft delete
  • GET /api/v1/dashboard_templates/<id>/timeline — Audit + activities

Search