InterfaceUpdateFilterParams

interface UpdateFilterParams {
    context?: null | readonly mastodon.v2.FilterContext[];
    expiresIn?: null | number;
    filterAction?: null | FilterAction;
    keywordsAttributes?: readonly {
        _destroy?: null | boolean;
        id?: null | string;
        keyword?: null | string;
        wholeWord?: null | boolean;
    }[];
    title?: string;
}

Properties

context?: null | readonly mastodon.v2.FilterContext[]

Array of String. Where the filter should be applied. Specify at least one of home, notifications, public, thread, account.

expiresIn?: null | number

Integer. How many seconds from now should the filter expire?

filterAction?: null | FilterAction

String. The policy to be applied when the filter is matched. Specify warn or hide.

keywordsAttributes?: readonly {
    _destroy?: null | boolean;
    id?: null | string;
    keyword?: null | string;
    wholeWord?: null | boolean;
}[]
title?: string

String. The name of the filter group.