Saltar al contenido
Centro de ayuda
Productos

Referencia de la API

POST /integration/v1/reports/templates

Create a new report

Create a new report

operationId Create a new report

Cuerpo de la solicitud

Content-Type: application/json

Campo Tipo Obligatorio Descripción
id string (uuid) opcional Template id (present on update; absent on create)
name string opcional Name
dpn string opcional Description
addCustomFields boolean opcional Add custom fields
reportType string obligatorio Report type
enum: `training_hours`, `students`, `progress_courses`, `viewed_courses`, `passed_courses`, `activity_by_courses`, …
lang string obligatorio Language
is_include_portal_logo string opcional Portal logo included
include_portal_logo boolean opcional Whether to render the portal logo on the report
title_style object opcional Title style (bold, italic, underline, align, fontSize, color, bgColor)
column_settings object opcional Per-column display overrides keyed by column slug (title, format, rowStyle, conditions)
autoRunSettings object opcional Auto-run settings — presence makes the template available in group manager settings
columns array obligatorio Columns
key string obligatorio Column key
title string obligatorio Column title
type string obligatorio Column type (ParameterSpec class name)
dpn string opcional Description
is_optional boolean opcional Whether the column is optional
is_pinned boolean opcional Whether the column is pinned

Respuestas

200

Esquema de application/json

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

412 Invalid parameters

500 Server error

512 Specification violations