tools.ozone.report.createActivity

Register an activity on a report. For state-change activity types, validates the transition and updates report.status atomically.

Details · procedure
Kindprocedure
Authorityreport.ozone.tools
Indexed

Procedure

procedure · POST

Input

application/json

eventId

integer

ID of the report moderation event. Resolves to the report created from that event. Exactly one of reportId or eventId must be provided.

Optional moderator-only note. Not visible to reporters.

Set true when this activity is triggered by an automated process. Defaults to false.

  • default: false

Optional public-facing note, potentially visible to the reporter.

reportId

integer

ID of the report to record activity on. Exactly one of reportId or eventId must be provided.

Output

application/json

Errors

ReportNotFound

No report exists with the given reportId or eventId

InvalidStateTransition

The requested state transition is not permitted from the report's current status

AlreadyInTargetState

The report is already in the status implied by this activity type

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.