Report Template attributes
- report_id (UUID, read-only)
-
Unique ID of Report Template assigned by MiaRec application when a report is created. Read-only.
This field is returned in
GETrequest only. It is ignored inPUTandPOSTrequests. - report_type (string, required)
-
A type of a report, available options:
calls_per_groupcall_detailsuser_detailsaudit_trail_detailsuser_call_summarygroup_call_summarytenant_call_summarytenant_detailscall_summaryinterval_call_summarygroup_call_summary_w_drilldownaudit_trail_summarysystem_log_detailssystem_log_summary
- tenant_id (UUID, optional)
-
ID of the parent tenant's object. This field is available only when all the following conditions are true:
- Multi-tenancy is enabled in the MiaRec application,
- The REST API user belongs to the System tenant,
- The REST API user has permissions to view the corresponding tenant, and
- The report is not global.
If REST API user is a tenant user, and such a user creates a new report, then user's tenant_id is implicitely used as the report's tenant_id.
If a report is global, then
tenant_idisnull. - name (string, required, maximum 64 characters)
-
Name of the report
- description (string, optional, maximum 4096 characters)
-
Human-friendly description of the report
- user_id (UUID, optional)
-
ID of the owner of the report (optional).
If both
user_idandtenant_idare null, then the report is global (i.e. visible to all tenants). Ifuser_idis null, buttenant_idis not null, then the report is public within the tenant boundaries (i.e. visible to all users within such a tenant). - period (string, optional)
-
A period type for the report, available options:
last_24hlast_7dlast_30dlast_365dtodayyesterdaythis_weeklast_weekthis_monthlast_monthdate_range
- period_begin (datetime, optional)
-
Date/time of the begining interval of the report (when the period attribute is set to
date_range). Format is ISO8601 with timezone, for example2014-06-10T13:45:51+0800 - period_end (datetime, optional)
-
Date/time of the ending interval of the report (when the period attribute is set to
date_range). Format is ISO8601 with timezone, for example2014-06-10T13:45:51+0800 - timezone (string, optional)
-
Timezone setting to use when building the report. ALl date/time values and filtering criteria will use such a timezone.
For a full list of available attributes, check JSON representation at View Report Template