Skip to main content

tools.ozone.moderation.queryEvents

#main

List moderation events related to a subject.

Parameters

PropertyTypeKnown ValuesRequiredDescription
typesarray--
createdBystring (did)--
sortDirectionstring-Sort direction for the events. Defaults to descending order of created at timestamp.
createdAfterstring (datetime)-Retrieve events created after a given timestamp
createdBeforestring (datetime)-Retrieve events created before a given timestamp
subjectstring (uri)--
collectionsarray of nsid--
subjectTypestringaccount
record
If specified, only events where the subject is of the given type (account or record) will be returned. When this is set to 'account' the 'collections' parameter will be ignored. When includeAllUserRecords or subject is set, this will be ignored.
includeAllUserRecordsboolean-If true, events on all record types (posts, lists, profile etc.) or records from given 'collections' param, owned by the did are returned.
limitinteger--
hasCommentboolean-If true, only events with comments are returned
commentstring-If specified, only events with comments containing the keyword are returned
addedLabelsarray--
removedLabelsarray--
addedTagsarray--
removedTagsarray--
reportTypesarray--
cursorstring--

Output

  • Encoding: application/json
PropertyTypeKnown ValuesRequiredDescription
cursorstring--
eventsarray of tools.ozone.moderation.defs#modEventView--