Import configuration

post/admin/config
Internal-Use Only

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.

Request Samples

1

Response Samples

1No example avaliable

Query Parameters

NameTypeRequiredDescription
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

Request Body

The request and response for /admin/config when importing and exporting a configuration between systems.

NameTypeRequiredDescription
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.

Responses

StatusMeaningDescription
200OKThe request succeeded.
400Bad RequestThe request is malformed or contains invalid parameter values.Schema