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
| Kind | procedure |
|---|---|
| Authority | report.ozone.tools |
| Commit rev | 3n2oxkzagzc2f |
| Indexed |
Procedure
procedure · POSTInput
application/jsoneventId
integerID of the report moderation event. Resolves to the report created from that event. Exactly one of reportId or eventId must be provided.
internalNote
stringOptional moderator-only note. Not visible to reporters.
isAutomated
booleanSet true when this activity is triggered by an automated process. Defaults to false.
default: false
meta
unknownOptional metadata for the report activities. Lifecycle and resolution fields are controlled by the service.
publicNote
stringOptional public-facing note, potentially visible to the reporter.
reportId
integerID of the report to record activity on. Exactly one of reportId or eventId must be provided.
Output
application/jsonErrors
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 matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
tools.ozone.moderation.emitEvent
procedureTake a moderation action on an actor.
-
tools.ozone.report.closeReports
procedureClose 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.