tools.ozone.moderation.emitEvent

Take a moderation action on an actor.

Details · procedure
Kindprocedure
Authoritymoderation.ozone.tools
Commit rev3n2oxkwttts2f
Indexed

Procedure

procedure · POST

Input

application/json

createdBy

requiredstring · did

An optional external ID for the event, used to deduplicate events from external systems. Fails when an event of same type with the same external ID exists for the same subject.

Optional report-level targeting. If provided, this event will be linked to specific reports and reporters may be notified.

Reference
itemsstring · cid

Output

application/json

Errors

SubjectHasAction

No description in schema.

DuplicateExternalId

An event with the same external ID already exists for the subject.

#reportAction

object

Target specific reports when emitting a moderation event

Properties

all

boolean

Target ALL reports on the subject. Excludes assigned and escalated reports.

allOwned

boolean

Target all eligible reports on the account and its owned subjects, including records, messages, and conversations. Only valid for account subjects and events that close reports. Excludes assigned, escalated, and actively assigned reports unless explicitly targeted by ID.

ids

array

Target specific report IDs

itemsinteger

Set true when the report activities are created by an automated process.

note

string

Note to send to reporter(s) when actioning their report

Expands report targeting to include owned subjects of these types. Requires event subject to be an account. Mutually exclusive with `subjects`.

  • maxLength: 4
itemsstring
  • enum: account | record | message | conversation

Expands report targeting to include additional subjects. Requires event subject to be an account. Mutually exclusive with `subjectTypes`.

  • maxLength: 100

types

array

Target reports matching these report types on the subject (fully qualified NSIDs). Excludes assigned and escalated reports.

itemsstring

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 multiple subjects at once. Each subject is processed independently; failures are listed in failedEvents. Only the listed event types are supported.

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

  • Submit a moderation report regarding an atproto account or record. Implemented by moderation services (with PDS proxying), and requires auth.

  • Label or take down one post through atchan's labeler. A thin layer over tools.ozone.moderation.emitEvent.

  • Appeal a moderation action affecting the user's account or content.