Creates or updates a search application Beta

PUT /_application/search_application/{name}

Path parameters

  • name string Required

    The name of the search application to be created or updated.

Query parameters

  • create boolean

    If true, this request cannot replace or update existing Search Applications.

application/json

Body Required

Responses

  • 200 application/json
    Hide response attribute Show response attribute object
    • result string Required

      Values are created, updated, deleted, not_found, or noop.

PUT /_application/search_application/{name}
curl \
 -X PUT http://api.example.com/_application/search_application/{name} \
 -H "Content-Type: application/json" \
 -d '{"name":"string","indices":["string"],"":42.0,"analytics_collection_name":"string","template":{"script":{"source":"string","id":"string","params":{"key":{}},"":"painless","options":{"key":"string"}}}}'