Update Report¶
-
TruStar.update_report(report)¶ Updates the report identified by the
report.idfield; if this field does not exist, thenreport.external_idwill be used if it exists. Any other fields onreportthat are notNonewill overwrite values on the report in TruSTAR’s system. Any fields that areNonewill 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