Export / Import

Exports the configuration of the selected search indexes as one package. The package can be imported on another tenant.
data is a base64-encoded JSON array. Each decoded item has id, type, and fields. name and description are optional localized maps. The array does not include status or metadata. Unknown properties in the request are ignored.
A selection that names an index that does not exist returns 404 Not Found. An empty selection, a null item, or an item without type or id returns 400 Bad Request.
- : Needed to create, update, and delete saved searches and search indexes.
Your Emporix tenant's name. Note: The tenant should always be written in lowercase.
^[a-z][a-z0-9]+$One index to export. Unknown properties are ignored.
Type this index belongs to. A custom schema type, customer, or legal-entity.
VEHICLEIndex id. Use 1 to 66 characters. Allowed characters are letters, digits, underscore, and hyphen.
vehiclesThe request succeeded. The body is the export package.
Package of search index configuration. data is the base64 encoding of a JSON array.
Each decoded item has id, type, and fields. name, description, and analyzers are optional. Export omits status and metadata. Import accepts metadata.version when the caller sends it.
Date and time when the package was exported.
2026-03-12T10:00:00.000ZBase64-encoded JSON array of index configurations.
W3siaWQiOiJ2ZWhpY2xlcyIsInR5cGUiOiJWRUhJQ0xFIiwibmFtZSI6eyJlbiI6IlZlaGljbGVzIn0sImRlc2NyaXB0aW9uIjp7ImVuIjoiU2VhcmNoIHZlaGljbGVzIGJ5IG5hbWUgYW5kIHBvd2VyIn0sImZpZWxkcyI6W3sicGF0aCI6Im5hbWUuZW4iLCJ0ZXh0Ijp0cnVlLCJhdXRvY29tcGxldGUiOiJQUkVGSVgifSx7InBhdGgiOiJjb2RlIiwidGV4dCI6dHJ1ZSwiZXhhY3QiOnRydWV9XX0seyJpZCI6ImJpa2VzIiwidHlwZSI6IkJJS0UiLCJuYW1lIjp7ImVuIjoiQmlrZXMifSwiZGVzY3JpcHRpb24iOnsiZW4iOiJTZWFyY2ggYmlrZXMgYnkgbmFtZSJ9LCJmaWVsZHMiOlt7InBhdGgiOiJuYW1lLmVuIiwidGV4dCI6dHJ1ZX1dfV0=The selection is empty, an item is null, or an item is missing type or id.
The authorization token is invalid or has expired.
The access token does not include search.search_manage.
No index exists for one of the selected type and id pairs.
A server-side error occurred.
POST /search/{tenant}/search/indexes/export HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 65
[
{
"type": "VEHICLE",
"id": "vehicles"
},
{
"type": "BIKE",
"id": "bikes"
}
]{
"exportedAt": "2026-03-12T10:00:00.000Z",
"data": "W3siaWQiOiJ2ZWhpY2xlcyIsInR5cGUiOiJWRUhJQ0xFIiwibmFtZSI6eyJlbiI6IlZlaGljbGVzIn0sImRlc2NyaXB0aW9uIjp7ImVuIjoiU2VhcmNoIHZlaGljbGVzIGJ5IG5hbWUgYW5kIHBvd2VyIn0sImZpZWxkcyI6W3sicGF0aCI6Im5hbWUuZW4iLCJ0ZXh0Ijp0cnVlLCJhdXRvY29tcGxldGUiOiJQUkVGSVgifSx7InBhdGgiOiJjb2RlIiwidGV4dCI6dHJ1ZSwiZXhhY3QiOnRydWV9XX0seyJpZCI6ImJpa2VzIiwidHlwZSI6IkJJS0UiLCJuYW1lIjp7ImVuIjoiQmlrZXMifSwiZGVzY3JpcHRpb24iOnsiZW4iOiJTZWFyY2ggYmlrZXMgYnkgbmFtZSJ9LCJmaWVsZHMiOlt7InBhdGgiOiJuYW1lLmVuIiwidGV4dCI6dHJ1ZX1dfV0="
}
Creates or updates each index in the package. Each index uses the same checks as saving an index. The type must be a custom schema type, customer, or legal-entity, and each field must be allowed on that type.
data is a base64-encoded JSON array of index configurations. metadata can be omitted. When metadata.version is present, it is the optimistic lock. A missing version still updates an index that already exists. Unknown properties in a decoded item are ignored.
The response has one item per index, in the same order as the package. jobId and jobType are present when a build job starts. They are omitted when the index is already ready and its field definition is unchanged. create_index means the index was created. update_index means an existing index's field definition changed.
Indexes earlier in the package stay created or updated when a later index fails. The response is then the error for the index that failed.
- : Needed to create, update, and delete saved searches and search indexes.
Your Emporix tenant's name. Note: The tenant should always be written in lowercase.
^[a-z][a-z0-9]+$Language of the localized name and description in the request body. Each language key in those maps must be configured for the tenant.
enPackage of search index configuration. data is the base64 encoding of a JSON array.
Each decoded item has id, type, and fields. name, description, and analyzers are optional. Export omits status and metadata. Import accepts metadata.version when the caller sends it.
Date and time when the package was exported.
2026-03-12T10:00:00.000ZBase64-encoded JSON array of index configurations.
W3siaWQiOiJ2ZWhpY2xlcyIsInR5cGUiOiJWRUhJQ0xFIiwibmFtZSI6eyJlbiI6IlZlaGljbGVzIn0sImRlc2NyaXB0aW9uIjp7ImVuIjoiU2VhcmNoIHZlaGljbGVzIGJ5IG5hbWUgYW5kIHBvd2VyIn0sImZpZWxkcyI6W3sicGF0aCI6Im5hbWUuZW4iLCJ0ZXh0Ijp0cnVlLCJhdXRvY29tcGxldGUiOiJQUkVGSVgifSx7InBhdGgiOiJjb2RlIiwidGV4dCI6dHJ1ZSwiZXhhY3QiOnRydWV9XX0seyJpZCI6ImJpa2VzIiwidHlwZSI6IkJJS0UiLCJuYW1lIjp7ImVuIjoiQmlrZXMifSwiZGVzY3JpcHRpb24iOnsiZW4iOiJTZWFyY2ggYmlrZXMgYnkgbmFtZSJ9LCJmaWVsZHMiOlt7InBhdGgiOiJuYW1lLmVuIiwidGV4dCI6dHJ1ZX1dfV0=The request succeeded. The body lists one result for each index in the package.
Result of importing one index. jobId and jobType are omitted when the ready index is unchanged.
Index id.
vehiclesType this index belongs to. A custom schema type, customer, or legal-entity.
VEHICLEIdentifier of the job that builds the index. Present when a job starts.
66f1a2b3c4d5e6f708192a3bKind of index change. Present when a job starts.
create_index– the index was created.update_index– an existing index's field definition changed.
create_indexPossible values: The package cannot be read, or an index in the package fails validation or field checks.
The authorization token is invalid or has expired.
The access token does not include search.search_manage.
An index job is already in progress, or metadata.version does not match the stored index.
A server-side error occurred.
POST /search/{tenant}/search/indexes/import HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 535
{
"exportedAt": "2026-03-12T10:00:00.000Z",
"data": "W3siaWQiOiJ2ZWhpY2xlcyIsInR5cGUiOiJWRUhJQ0xFIiwibmFtZSI6eyJlbiI6IlZlaGljbGVzIn0sImRlc2NyaXB0aW9uIjp7ImVuIjoiU2VhcmNoIHZlaGljbGVzIGJ5IG5hbWUgYW5kIHBvd2VyIn0sImZpZWxkcyI6W3sicGF0aCI6Im5hbWUuZW4iLCJ0ZXh0Ijp0cnVlLCJhdXRvY29tcGxldGUiOiJQUkVGSVgifSx7InBhdGgiOiJjb2RlIiwidGV4dCI6dHJ1ZSwiZXhhY3QiOnRydWV9XX0seyJpZCI6ImJpa2VzIiwidHlwZSI6IkJJS0UiLCJuYW1lIjp7ImVuIjoiQmlrZXMifSwiZGVzY3JpcHRpb24iOnsiZW4iOiJTZWFyY2ggYmlrZXMgYnkgbmFtZSJ9LCJmaWVsZHMiOlt7InBhdGgiOiJuYW1lLmVuIiwidGV4dCI6dHJ1ZX1dfV0="
}[
{
"id": "vehicles",
"type": "VEHICLE",
"jobId": "66f1a2b3c4d5e6f708192a3b",
"jobType": "create_index"
},
{
"id": "bikes",
"type": "BIKE"
}
]Last updated
Was this helpful?

