[[reference-ml-update_filter]] //////// =========================================================================================================================== || || || || || || || ██████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗███████╗ || || ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝ || || ██████╔╝█████╗ ███████║██║ ██║██╔████╔██║█████╗ || || ██╔══██╗██╔══╝ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ || || ██║ ██║███████╗██║ ██║██████╔╝██║ ╚═╝ ██║███████╗ || || ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ || || || || || || This file is autogenerated, DO NOT send pull requests that changes this file directly. || || You should update the script that does the generation, which can be found in: || || https://github.com/elastic/elastic-client-generator-js || || || || You can run the script with the following command: || || npm run elasticsearch -- --version || || || || || || || =========================================================================================================================== //////// [discrete] === client.ml.updateFilter Update a filter. Updates the description of a filter, adds items, or removes items from the list. {ref}/ml-update-filter.html[{es} documentation] [discrete] ==== Function signature [source,ts] ---- (MlUpdateFilterRequest, options?): Promise ---- [discrete] ===== `MlUpdateFilterRequest` [source,ts] ---- interface MlUpdateFilterRequest extends <> { filter_id: <> add_items?: string[] description?: string remove_items?: string[] } ---- [discrete] ===== `MlUpdateFilterResponse` [source,ts] ---- interface MlUpdateFilterResponse { description: string filter_id: <> items: string[] } ----