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
Commit rev3n2oxkzagzc2f
Indexed

Showing version bafyreia52bbcdfwgikul2xw3bojnq4tc47m4s7pxobrsuiumd2yqxonwpe. Show the latest

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

meta

unknown

Optional metadata for the report activities. Lifecycle and resolution fields are controlled by the service.

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.

  • Take a moderation action on an actor.

  • Close eligible reports on a subject matching the given criteria, optionally linking an existing moderation action. Assigned, escalated, and actively assigned reports are excluded unless explicitly targeted by reportId. Reports whose current status does not permit a transition to closed are skipped silently.

  • Activity recording a moderator being assigned to a report.