Filtering activity_logs by event type

Hey, all!
I’m using the api to get activity_logs. We have tons of items and I was wondering if there is any way to filter activity logs by event type (we have a lot of items and we need just query a couple of event types.

For instance, something like this:

query {
boards (ids: 456839293) {
activity_logs (from: “2023-01-01T00:00:00Z”,
to: “2023-02-01T00:00:00Z”,
EVENT: [“subscribe”, “unsubscribe”] ) {
id
data
}
}
}

Hope it makes sense.
Thank you!

Hello @martin.ingolingo and welcome to the community!

I hope you like it here :muscle:

You can not filter by event type as of today. These are the available filters:

limit: [Int] = 25
Number of items to get, the default is 25.

page: [Int] = 1
Page number to get, starting at 1.

user_ids: [Int]
User ids to filter.

column_ids: [String]
Column ids to filter

group_ids: [String]
Group ids to filter

item_ids: [Int]
Item id to filter

from: [ISO8601DateTime]
From timestamp (ISO8601)

to: [ISO8601DateTime]
To timestamp (ISO8601)

I hope that helps!

Cheers,
Matias

Thank you @Matias.Monday for your response! So far so good :smile:

1 Like

Glad to help!

Let me know if you need anything else!

Cheers,
Matias