Import configuration

post/admin/config

Imports the configuration for multiple types. This is designed for transferring configurations between systems; therefore, the request does not include version numbers, and any existing configuration are 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

1Not Available

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 [link]
false

Zero or more links to related resources or operations. See the link relations table for a description of the link types.

Responses

StatusMeaningDescription
200OK

The request succeeded.

400Bad Request

The request is malformed or contains invalid parameter values.

Schema