Interface UpdateFilterParams

interface UpdateFilterParams {
    context?: null | readonly (keyof mastodon.v2.FilterContextRegistry)[];
    expiresIn?: null | number;
    filterAction?: null | (keyof FilterActionRegistry);
    keywordsAttributes?: readonly {
        _destroy?: null | boolean;
        id?: null | string;
        keyword?: null | string;
        wholeWord?: null | boolean;
    }[];
    title?: string;
}

Properties

context?: null | readonly (keyof mastodon.v2.FilterContextRegistry)[]

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 | (keyof FilterActionRegistry)

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.