Update Report¶
-
TruStar.
update_report
(report)¶ Updates the report identified by the
report.id
field; if this field does not exist, thenreport.external_id
will be used if it exists. Any other fields onreport
that are notNone
will overwrite values on the report in TruSTAR’s system. Any fields that areNone
will simply be ignored; their values will be unchanged.Parameters: report – A Report object with the updated values. Returns: The Report object. Example:
>>> report = ts.get_report_details(report_id) >>> print((report.title)) Old Title >>> report.title = "Changed title" >>> updated_report = ts.update_report(report) >>> print((updated_report.title)) Changed Title