الانتقال إلى المحتوى
مركز المساعدة
المنتجات

مرجع API

POST /integration/v1/reports/templates

Create a new report

Create a new report

operationId Create a new report

نص الطلب

Content-Type: application/json

الحقل النوع الإلزامية الوصف
id string (uuid) اختياري Template id (present on update; absent on create)
name string اختياري Name
dpn string اختياري Description
addCustomFields boolean اختياري Add custom fields
reportType string مطلوب Report type
enum: `training_hours`, `students`, `progress_courses`, `viewed_courses`, `passed_courses`, `activity_by_courses`, …
lang string مطلوب Language
is_include_portal_logo string اختياري Portal logo included
include_portal_logo boolean اختياري Whether to render the portal logo on the report
title_style object اختياري Title style (bold, italic, underline, align, fontSize, color, bgColor)
column_settings object اختياري Per-column display overrides keyed by column slug (title, format, rowStyle, conditions)
autoRunSettings object اختياري Auto-run settings — presence makes the template available in group manager settings
columns array مطلوب Columns
key string مطلوب Column key
title string مطلوب Column title
type string مطلوب Column type (ParameterSpec class name)
dpn string اختياري Description
is_optional boolean اختياري Whether the column is optional
is_pinned boolean اختياري Whether the column is pinned

الاستجابات

200

مخطط application/json

{
  "type": "object",
  "nullable": true
}

412 Invalid parameters

500 Server error

512 Specification violations