[[reference-ml-update_datafeed]] //////// =========================================================================================================================== || || || || || || || ██████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗███████╗ || || ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝ || || ██████╔╝█████╗ ███████║██║ ██║██╔████╔██║█████╗ || || ██╔══██╗██╔══╝ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ || || ██║ ██║███████╗██║ ██║██████╔╝██║ ╚═╝ ██║███████╗ || || ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ || || || || || || 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.updateDatafeed Update a datafeed. You must stop and start the datafeed for the changes to be applied. When Elasticsearch security features are enabled, your datafeed remembers which roles the user who updated it had at the time of the update and runs the query using those same roles. If you provide secondary authorization headers, those credentials are used instead. {ref}/ml-update-datafeed.html[{es} documentation] [discrete] ==== Function signature [source,ts] ---- (MlUpdateDatafeedRequest, options?): Promise ---- [discrete] ===== `MlUpdateDatafeedRequest` [source,ts] ---- interface MlUpdateDatafeedRequest extends <> { datafeed_id: <> allow_no_indices?: boolean expand_wildcards?: <> ignore_throttled?: boolean ignore_unavailable?: boolean aggregations?: Record chunking_config?: MlChunkingConfig delayed_data_check_config?: MlDelayedDataCheckConfig frequency?: <> indices?: string[] /** @alias indices */ indexes?: string[] indices_options?: <> job_id?: <> max_empty_searches?: <> query?: QueryDslQueryContainer query_delay?: <> runtime_mappings?: MappingRuntimeFields script_fields?: Record>> scroll_size?: <> } ---- [discrete] ===== `MlUpdateDatafeedResponse` [source,ts] ---- interface MlUpdateDatafeedResponse { authorization?: MlDatafeedAuthorization aggregations?: Record chunking_config: MlChunkingConfig delayed_data_check_config?: MlDelayedDataCheckConfig datafeed_id: <> frequency?: <> indices: string[] indices_options?: <> job_id: <> max_empty_searches?: <> query: QueryDslQueryContainer query_delay: <> runtime_mappings?: MappingRuntimeFields script_fields?: Record>> scroll_size: <> } ----