List of trackers' IDs to be included in report (if report is by trackers).
int array
employees
List of employees' IDs to be included in report (if report is by employees. For example, plugin ID 82).
int array
time_filter
An object which contains everyday time and weekday limits for processed data, e.g. {"to":"18:00", "from":"12:00", "weekdays":[1,2,3,4,5]}.
JSON object
plugin
A plugin object (see below).
JSON object
Parameter object fields:
Part of parameters are plugin-specific. See "Tracker report plugins" section. Common parameters are:
name
description
type
plugin_id
An ID of a tracker report plugin which will be used to generate report.
int
show_seconds
Flag to define whether time values in report should have format with seconds. true - show seconds, false - don't show seconds.
boolean
Plugin example:
Example
cURL
Response
id - int. An ID of the report queued for generation. Can be used to request report generation status and to retrieve generated report.
Errors
15 - Too many requests / rate limit exceeded - the number of reports created by one user in parallel limited.
211 - Requested time span is too big - interval from from to to is bigger then max allowed time span (see response).
max_time_span - string. ISO 8601 duration.
217 - List contains nonexistent entities - when one or more of tracker IDs belong to nonexistent tracker (or to a tracker belonging to different user).
222 - Plugin not found - when specified report plugin not found.
236 - Feature unavailable due to tariff restrictions - when one of the trackers has tariff with disabled reports ("has_reports" is false).
list
Returns info about all available generated or in-progress reports.
required sub-user rights: reports.
Examples
Response
created - string. Date when report created.
time_filter - object.
from - string. Control time "from" of day.
to - string. Control time "to" of day.
weekdays - int array. Control "weekdays" of the report. Can be 1 - 7.
title - string. Report title.
id - int. Report ID which can be used to retrieve or download report.
parameters - object with report parameters.
trackers - int array. List of tracker IDs used for report.
plugins - array of objects. List of parameters for all plugins which were used to generate report.
locale_info - object with information about the locale, timezone, and measurement system used for the report.