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 |
| 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
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.