Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Export / Import

Exporting search indexes

post
Preview

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.

Required scopes
This endpoint requires the following scopes:
  • : Needed to create, update, and delete saved searches and search indexes.
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
tenantstring · min: 3 · max: 16Required

Your Emporix tenant's name. Note: The tenant should always be written in lowercase.

Pattern: ^[a-z][a-z0-9]+$
Bodyobject · IndexSelection[]

One index to export. Unknown properties are ignored.

typestringRequired

Type this index belongs to. A custom schema type, customer, or legal-entity.

Example: VEHICLE
idstringRequired

Index id. Use 1 to 66 characters. Allowed characters are letters, digits, underscore, and hyphen.

Example: vehicles
Responses
200

The request succeeded. The body is the export package.

application/json

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.

exportedAtstring · date-timeRequired

Date and time when the package was exported.

Example: 2026-03-12T10:00:00.000Z
datastringRequired

Base64-encoded JSON array of index configurations.

Example: W3siaWQiOiJ2ZWhpY2xlcyIsInR5cGUiOiJWRUhJQ0xFIiwibmFtZSI6eyJlbiI6IlZlaGljbGVzIn0sImRlc2NyaXB0aW9uIjp7ImVuIjoiU2VhcmNoIHZlaGljbGVzIGJ5IG5hbWUgYW5kIHBvd2VyIn0sImZpZWxkcyI6W3sicGF0aCI6Im5hbWUuZW4iLCJ0ZXh0Ijp0cnVlLCJhdXRvY29tcGxldGUiOiJQUkVGSVgifSx7InBhdGgiOiJjb2RlIiwidGV4dCI6dHJ1ZSwiZXhhY3QiOnRydWV9XX0seyJpZCI6ImJpa2VzIiwidHlwZSI6IkJJS0UiLCJuYW1lIjp7ImVuIjoiQmlrZXMifSwiZGVzY3JpcHRpb24iOnsiZW4iOiJTZWFyY2ggYmlrZXMgYnkgbmFtZSJ9LCJmaWVsZHMiOlt7InBhdGgiOiJuYW1lLmVuIiwidGV4dCI6dHJ1ZX1dfV0=
post/search/{tenant}/search/indexes/export
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="
}

Importing search indexes

post
Preview

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.

Required scopes
This endpoint requires the following scopes:
  • : Needed to create, update, and delete saved searches and search indexes.
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
tenantstring · min: 3 · max: 16Required

Your Emporix tenant's name. Note: The tenant should always be written in lowercase.

Pattern: ^[a-z][a-z0-9]+$
Header parameters
Content-LanguagestringOptional

Language of the localized name and description in the request body. Each language key in those maps must be configured for the tenant.

Example: en
Body

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.

exportedAtstring · date-timeRequired

Date and time when the package was exported.

Example: 2026-03-12T10:00:00.000Z
datastringRequired

Base64-encoded JSON array of index configurations.

Example: W3siaWQiOiJ2ZWhpY2xlcyIsInR5cGUiOiJWRUhJQ0xFIiwibmFtZSI6eyJlbiI6IlZlaGljbGVzIn0sImRlc2NyaXB0aW9uIjp7ImVuIjoiU2VhcmNoIHZlaGljbGVzIGJ5IG5hbWUgYW5kIHBvd2VyIn0sImZpZWxkcyI6W3sicGF0aCI6Im5hbWUuZW4iLCJ0ZXh0Ijp0cnVlLCJhdXRvY29tcGxldGUiOiJQUkVGSVgifSx7InBhdGgiOiJjb2RlIiwidGV4dCI6dHJ1ZSwiZXhhY3QiOnRydWV9XX0seyJpZCI6ImJpa2VzIiwidHlwZSI6IkJJS0UiLCJuYW1lIjp7ImVuIjoiQmlrZXMifSwiZGVzY3JpcHRpb24iOnsiZW4iOiJTZWFyY2ggYmlrZXMgYnkgbmFtZSJ9LCJmaWVsZHMiOlt7InBhdGgiOiJuYW1lLmVuIiwidGV4dCI6dHJ1ZX1dfV0=
Responses
200

The request succeeded. The body lists one result for each index in the package.

application/json

Result of importing one index. jobId and jobType are omitted when the ready index is unchanged.

idstringRequired

Index id.

Example: vehicles
typestringRequired

Type this index belongs to. A custom schema type, customer, or legal-entity.

Example: VEHICLE
jobIdstringOptional

Identifier of the job that builds the index. Present when a job starts.

Example: 66f1a2b3c4d5e6f708192a3b
jobTypestring · enumOptional

Kind of index change. Present when a job starts.

  • create_index – the index was created.
  • update_index – an existing index's field definition changed.
Example: create_indexPossible values:
post/search/{tenant}/search/indexes/import
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?