tools.ozone.moderation.queryEvents
#main
List moderation events related to a subject.
Parameters
Property | Type | Known Values | Required | Description |
---|---|---|---|---|
types | array | - | ❌ | - |
createdBy | string (did) | - | ❌ | - |
sortDirection | string | - | ❌ | Sort direction for the events. Defaults to descending order of created at timestamp. |
createdAfter | string (datetime) | - | ❌ | Retrieve events created after a given timestamp |
createdBefore | string (datetime) | - | ❌ | Retrieve events created before a given timestamp |
subject | string (uri) | - | ❌ | - |
collections | array of nsid | - | ❌ | - |
subjectType | string | account 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. |
includeAllUserRecords | boolean | - | ❌ | If true, events on all record types (posts, lists, profile etc.) or records from given 'collections' param, owned by the did are returned. |
limit | integer | - | ❌ | - |
hasComment | boolean | - | ❌ | If true, only events with comments are returned |
comment | string | - | ❌ | If specified, only events with comments containing the keyword are returned |
addedLabels | array | - | ❌ | - |
removedLabels | array | - | ❌ | - |
addedTags | array | - | ❌ | - |
removedTags | array | - | ❌ | - |
reportTypes | array | - | ❌ | - |
cursor | string | - | ❌ | - |
Output
- Encoding: application/json
Property | Type | Known Values | Required | Description |
---|---|---|---|---|
cursor | string | - | ❌ | - |
events | array of tools.ozone.moderation.defs#modEventView | - | ✅ | - |