tools.ozone.moderation.queryEvents

Domain Index: ozone.tools

Crawl History

#main - query

List moderation events related to a subject.

Query Parameters

Name Type Details
addedLabels array

If specified, only events where all of these labels were added are returned

UNHANDLED IN ARRAYS: string

addedTags array

If specified, only events where all of these tags were added are returned

UNHANDLED IN ARRAYS: string

collections array

If specified, only events where the subject belongs to the given collections will be returned. When subjectType is set to 'account', this will be ignored.

Array Length: 20 max

UNHANDLED IN ARRAYS: string

comment string

If specified, only events with comments containing the keyword are returned. Apply || separator to use multiple keywords and match using OR condition.

createdAfter string

Retrieve events created after a given timestamp

Syntax Format: datetime

createdBefore string

Retrieve events created before a given timestamp

Syntax Format: datetime

createdBy string

Syntax Format: did

cursor string
hasComment boolean

If true, only events with comments are returned

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

Default: 50

Minimum: 1

Maxumum:

policies array

UNHANDLED IN ARRAYS: string

removedLabels array

If specified, only events where all of these labels were removed are returned

UNHANDLED IN ARRAYS: string

removedTags array

If specified, only events where all of these tags were removed are returned

UNHANDLED IN ARRAYS: string

reportTypes array

UNHANDLED IN ARRAYS: string

sortDirection string

Sort direction for the events. Defaults to descending order of created at timestamp.

Default: desc

Enum Values: asc, desc,

subject string

Syntax Format: uri

subjectType string

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.

Known Values: account, record,

types array

The types of events (fully qualified string in the format of tools.ozone.moderation.defs#modEvent<name>) to filter by. If not specified, all events are returned.

UNHANDLED IN ARRAYS: string

Response Body

Content Type: application/json

Data Fields

Name Type Details
cursor string
events array (required)

Elements are of type:

Errors

No error types defined