Import configuration
Imports the configuration for multiple types. This is intended to be used for moving the configuration between systems and as such there are no version numbers in the request and any existing configuration will be overwritten. If the new configuration contains breaking changes, such as the field type or events configuration has changed, the changes are saved but also require the data to be re-indexed to take effect. A localized message is included in the response if this is the case. The /admin/indices resource can be used to re-index the data.
Name | Type | Required | Description |
---|---|---|---|
validateOnly | boolean | false | Whether to validate the configuration and check for breaking changes without importing it. Default: false |
waitForRefresh | boolean | false | Whether to wait for any index-related operations to be applied prior to the response being returned. Default: false |
The request and response for /admin/config when importing and exporting a configuration between systems.
Name | Type | Required | Description |
---|---|---|---|
version | integer | false | The representation version (1). |
types | object | false | The type configuration keyed by type name. Type names can contain up to 36 alphanumeric characters and underscores but cannot start with an underscore. |
links | array [object] | false | Zero or more links to related resources or operations. See the link relations table for a description of the link types. |
Status | Meaning | Description | ||
---|---|---|---|---|
200 | OK | The request succeeded. | ||
400 | Bad Request | The request is malformed or contains invalid parameter values. | Schema |