[role="xpack"] [[put-search-application]] === Put Search Application beta::[] ++++ Put Search Application ++++ Creates or updates a Search Application. [[put-search-application-request]] ==== {api-request-title} `PUT _application/search_application/` [[put-search-application-prereqs]] ==== {api-prereq-title} Requires the `manage_search_application` cluster privilege. Also requires <> on all indices that are added to the Search Application. [[put-search-application-path-params]] ==== {api-path-parms-title} `create`:: (Optional, Boolean) If `true`, this request cannot replace or update existing Search Applications. Defaults to `false`. ``:: (Required, object) Contains parameters for a search application: + .Properties of `` objects [%collapsible%open] ==== `indices`:: (Required, array of strings) The <> associated with this search application. All indices need to exist in order to be added to a search application. `template`:: (Optional, object) The <> associated with this search application. The search application's template is only stored and accessible through the search application. - This search template must be a Mustache template. - The template must contain a Mustache script and script source. - The template may be modified with subsequent <> requests. - If no template is specified when creating a search application, or if a template is removed from a search application, we use the <> defined in the template examples as a default. - This template will be used by the <> API to execute searches. - The template accepts an optional `dictionary` parameter which defines a https://json-schema.org[JSON schema] used for validating parameters sent to the <> API. .Properties of `