create
Create a new report. The SDK serializes datetime instances inside main_period and compare_period to ISO-8601 strings automatically, and drops any optional argument left as None from the request body.
Parameters
ReportPeriod | Dict[str, Any]
required
Primary date range covered by the report. Pass a
ReportPeriod dataclass or a plain dict with date_from and date_to keys (datetime values are accepted and serialized automatically).str
required
Path identifying the source function that generated the report (e.g.
"f/iyree/reports/weekly").str
required
Identifier of the job that produced the report.
str
required
Rendered HTML payload of the report.
str
Optional report title.
str
Optional report description.
List[int]
Optional location identifiers the report is scoped to.
ReportPeriod | Dict[str, Any]
Optional comparison date range. Same shape as
main_period.str
Optional summary text.
str
Optional report name.
str
Optional workspace identifier.
Returns Report
str
Server-assigned report identifier.
str
Report name.
str
Report title.
str
Report description.
str
How the report was created (e.g.
"PREDEFINED").ReportSourceFunction
Function the report was generated from, or
None if not provided by the server.List[int]
Location identifiers the report is scoped to. Empty list if none.
ReportPeriod
Primary date range covered by the report.
ReportPeriod
Optional comparison date range, or
None when not set. Same shape as main_period.str
Summary text.
str
Rendered HTML payload returned by the server.
ReportSourceJob
Job that produced this report, or
None if not provided by the server.