Skip to main content

tools.ozone.report.closeReports

#main​

Close all reports on a subject matching the given criteria. Reports whose current status does not permit a transition to closed are skipped silently. Intended for automated flows that resolve reports without taking action on the subject.

Input​

  • Encoding: application/json
PropertyTypeKnown ValuesRequiredDescription
subjectstring (uri)-✅Subject DID (account-level reports) or AT-URI (record-level reports) whose reports should be closed.
reportTypesarray of string-❌If specified, only reports of the given report types (fully qualified reason NSIDs) are closed. When omitted, all non-closed reports on the subject are targeted.
internalNotestring-❌Optional moderator-only note recorded on each close activity. Not visible to reporters.
isAutomatedboolean-❌Set true when this action is triggered by an automated process. Defaults to false.

Output​

  • Encoding: application/json
PropertyTypeKnown ValuesRequiredDescription
closedCountinteger-✅Number of reports that were transitioned to closed.
reportIdsarray of integer-✅IDs of the reports that were closed.