Configuration
Retrieves all configurations of index providers. The returned response contains search and write keys.
- : Needed to read an index provider configuration
The tenant that the caller is acting upon.
Please note that this value is always lowercase.
^[a-z][a-z0-9]+$API Key used for search purposes.
Application id of an indexer provider.
Identifier of an index.
Index provider name. Supported providers: ALGOLIA (https://www.algolia.com), BATTERY_INCLUDED (https://www.batteryincluded.io). Only one provider can be active per tenant at a time.
Indicates if the configuration is active or not.
API key used for write purposes. For BATTERY_INCLUDED, this key is validated before the configuration is created or updated.
Optional base URL of the BatteryIncluded API that holds the tenant's index, for example https://api-next.batteryincluded.io. Applies only to the BATTERY_INCLUDED provider.
When set, the Indexing Service sends all of the tenant's BatteryIncluded requests to this host and validates writeKey against it, so the write key must be valid on this host. When not set, the default BatteryIncluded host is used.
The value must be an https address of an allowed BatteryIncluded host, without a path, query, fragment, user information, or port. A trailing slash is allowed. Other values are rejected with 400. A change takes effect within 10 minutes. Change apiUrl when no product reindex is running. If the index on the new host does not yet hold all products, start a full product reindex after the change takes effect.
Optional list of root product mixin keys to exclude from indexing. When set, the specified mixin keys are omitted from both the non-localized and localized portions of the indexed document. Applies only to the BATTERY_INCLUDED provider.
Optional allowlist of product mixin paths to include in indexing for the BATTERY_INCLUDED provider. Patterns are matched against full dot-notation paths rooted at the mixin key, for example class_EA673_toolsClassification.sk.OnlineIsService_P.
* matches within a single path segment, ** matches across one or more path segments, and matching is case sensitive.
If a matched path points to an object, the entire subtree under that object is included. When this field is absent or an empty list, path filtering is inactive and existing excludedMixinKeys behavior applies.
includedMixinPaths and excludedMixinKeys are mutually exclusive when includedMixinPaths is non-empty. Malformed glob patterns are rejected with a validation error on configuration writes.
Given request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match scopes required by the endpoint.
GET /indexing/{tenant}/configurations HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
[
{
"active": true,
"searchKey": "84dc4886f81f805c42bdd89d64de751a",
"applicationId": "8AP2HABA2I",
"indexName": "exampleTenant",
"writeKey": "51ebe89215dddcf85e5dacd5643d17e7",
"provider": "ALGOLIA"
},
{
"active": false,
"indexName": "exampleTenant",
"writeKey": "bi-api-key-abc123",
"provider": "BATTERY_INCLUDED",
"apiUrl": "https://api-next.batteryincluded.io",
"includedMixinPaths": [
"*_siteAware.*.OnlineIsService_P",
"*_siteAware.**"
],
"enrichments": [
"AVAILABILITY",
"PRICE"
]
}
]Creates a new index configuration. Supported providers:
Algolia - https://www.algolia.com
BatteryIncluded - https://www.batteryincluded.io
Identifier of a newly created configuration is a provider name. Only one provider can be active per tenant at a time.
For BATTERY_INCLUDED, the service validates indexName and writeKey against the BatteryIncluded host in apiUrl, or against the default host when apiUrl is not set, before saving. Invalid credentials return 400. If credential validation is temporarily unavailable, the request returns 502. In both cases, the configuration is not stored.
apiUrl applies only to BATTERY_INCLUDED. An apiUrl that is not an https address of an allowed BatteryIncluded host, or an apiUrl sent for another provider, returns 400.
enrichments applies only to BATTERY_INCLUDED. An enrichments list with an unknown or null value returns 400. An enrichments field sent for another provider also returns 400, even as an empty list.
- : Needed to manage an index provider configuration
The tenant that the caller is acting upon.
Please note that this value is always lowercase.
^[a-z][a-z0-9]+$API Key used for search purposes.
Application id of an indexer provider.
Identifier of an index.
Index provider name. Supported providers: ALGOLIA (https://www.algolia.com), BATTERY_INCLUDED (https://www.batteryincluded.io). Only one provider can be active per tenant at a time.
Indicates if the configuration is active or not.
API key used for write purposes. For BATTERY_INCLUDED, this key is validated before the configuration is created or updated.
Optional base URL of the BatteryIncluded API that holds the tenant's index, for example https://api-next.batteryincluded.io. Applies only to the BATTERY_INCLUDED provider.
When set, the Indexing Service sends all of the tenant's BatteryIncluded requests to this host and validates writeKey against it, so the write key must be valid on this host. When not set, the default BatteryIncluded host is used.
The value must be an https address of an allowed BatteryIncluded host, without a path, query, fragment, user information, or port. A trailing slash is allowed. Other values are rejected with 400. A change takes effect within 10 minutes. Change apiUrl when no product reindex is running. If the index on the new host does not yet hold all products, start a full product reindex after the change takes effect.
Optional list of root product mixin keys to exclude from indexing. When set, the specified mixin keys are omitted from both the non-localized and localized portions of the indexed document. Applies only to the BATTERY_INCLUDED provider.
Optional allowlist of product mixin paths to include in indexing for the BATTERY_INCLUDED provider. Patterns are matched against full dot-notation paths rooted at the mixin key, for example class_EA673_toolsClassification.sk.OnlineIsService_P.
* matches within a single path segment, ** matches across one or more path segments, and matching is case sensitive.
If a matched path points to an object, the entire subtree under that object is included. When this field is absent or an empty list, path filtering is inactive and existing excludedMixinKeys behavior applies.
includedMixinPaths and excludedMixinKeys are mutually exclusive when includedMixinPaths is non-empty. Malformed glob patterns are rejected with a validation error on configuration writes.
Created
Identifier of a newly created configuration.
Request was syntactically incorrect. Details will be provided in the response payload.
Given request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match scopes required by the endpoint.
Upstream dependency was unavailable. Details will be provided in the response payload.
POST /indexing/{tenant}/configurations HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 186
{
"active": true,
"searchKey": "84dc4886f81f805c42bdd89d64de751a",
"applicationId": "8AP2HABA2I",
"indexName": "exampleTenant",
"writeKey": "51ebe89215dddcf85e5dacd5643d17e7",
"provider": "ALGOLIA"
}{
"id": "ALGOLIA"
}Retrieves a single configuration by a provider name. Supported providers:
Algolia - https://www.algolia.com
BatteryIncluded - https://www.batteryincluded.io
- : Needed to read an index provider configuration
The tenant that the caller is acting upon.
Please note that this value is always lowercase.
^[a-z][a-z0-9]+$Provider name. Supported values: ALGOLIA, BATTERY_INCLUDED
API Key used for search purposes.
Application id of an indexer provider.
Identifier of an index.
Index provider name. Supported providers: ALGOLIA (https://www.algolia.com), BATTERY_INCLUDED (https://www.batteryincluded.io). Only one provider can be active per tenant at a time.
Indicates if the configuration is active or not.
API key used for write purposes. For BATTERY_INCLUDED, this key is validated before the configuration is created or updated.
Optional base URL of the BatteryIncluded API that holds the tenant's index, for example https://api-next.batteryincluded.io. Applies only to the BATTERY_INCLUDED provider.
When set, the Indexing Service sends all of the tenant's BatteryIncluded requests to this host and validates writeKey against it, so the write key must be valid on this host. When not set, the default BatteryIncluded host is used.
The value must be an https address of an allowed BatteryIncluded host, without a path, query, fragment, user information, or port. A trailing slash is allowed. Other values are rejected with 400. A change takes effect within 10 minutes. Change apiUrl when no product reindex is running. If the index on the new host does not yet hold all products, start a full product reindex after the change takes effect.
Optional list of root product mixin keys to exclude from indexing. When set, the specified mixin keys are omitted from both the non-localized and localized portions of the indexed document. Applies only to the BATTERY_INCLUDED provider.
Optional allowlist of product mixin paths to include in indexing for the BATTERY_INCLUDED provider. Patterns are matched against full dot-notation paths rooted at the mixin key, for example class_EA673_toolsClassification.sk.OnlineIsService_P.
* matches within a single path segment, ** matches across one or more path segments, and matching is case sensitive.
If a matched path points to an object, the entire subtree under that object is included. When this field is absent or an empty list, path filtering is inactive and existing excludedMixinKeys behavior applies.
includedMixinPaths and excludedMixinKeys are mutually exclusive when includedMixinPaths is non-empty. Malformed glob patterns are rejected with a validation error on configuration writes.
Given request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match scopes required by the endpoint.
Resource has not been found.
GET /indexing/{tenant}/configurations/{provider} HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"active": true,
"searchKey": "84dc4886f81f805c42bdd89d64de751a",
"applicationId": "8AP2HABA2I",
"indexName": "exampleTenant",
"writeKey": "51ebe89215dddcf85e5dacd5643d17e7",
"provider": "ALGOLIA"
}Updates an existing index configuration.
For BATTERY_INCLUDED, the service validates indexName and writeKey against the BatteryIncluded host in apiUrl, or against the default host when apiUrl is not set, before saving. Invalid credentials return 400. If credential validation is temporarily unavailable, the request returns 502. In both cases, the configuration is left unchanged.
The request replaces the whole configuration. A request without apiUrl moves the tenant back to the default BatteryIncluded host, so writeKey must be valid on that host. An apiUrl that is not an https address of an allowed BatteryIncluded host, or an apiUrl sent for another provider, returns 400.
A request without enrichments resets the tenant to the default set AVAILABILITY, PRICE, and CUSTOMER_SEGMENT. An enrichments list with an unknown or null value returns 400. An enrichments field sent for another provider also returns 400, even as an empty list.
- : Needed to manage an index provider configuration
The tenant that the caller is acting upon.
Please note that this value is always lowercase.
^[a-z][a-z0-9]+$Provider name. Supported values: ALGOLIA, BATTERY_INCLUDED
API Key used for search purposes.
Application id of an indexer provider.
Identifier of an index.
Index provider name. Supported providers: ALGOLIA (https://www.algolia.com), BATTERY_INCLUDED (https://www.batteryincluded.io). Only one provider can be active per tenant at a time.
Indicates if the configuration is active or not.
API key used for write purposes. For BATTERY_INCLUDED, this key is validated before the configuration is created or updated.
Optional base URL of the BatteryIncluded API that holds the tenant's index, for example https://api-next.batteryincluded.io. Applies only to the BATTERY_INCLUDED provider.
When set, the Indexing Service sends all of the tenant's BatteryIncluded requests to this host and validates writeKey against it, so the write key must be valid on this host. When not set, the default BatteryIncluded host is used.
The value must be an https address of an allowed BatteryIncluded host, without a path, query, fragment, user information, or port. A trailing slash is allowed. Other values are rejected with 400. A change takes effect within 10 minutes. Change apiUrl when no product reindex is running. If the index on the new host does not yet hold all products, start a full product reindex after the change takes effect.
Optional list of root product mixin keys to exclude from indexing. When set, the specified mixin keys are omitted from both the non-localized and localized portions of the indexed document. Applies only to the BATTERY_INCLUDED provider.
Optional allowlist of product mixin paths to include in indexing for the BATTERY_INCLUDED provider. Patterns are matched against full dot-notation paths rooted at the mixin key, for example class_EA673_toolsClassification.sk.OnlineIsService_P.
* matches within a single path segment, ** matches across one or more path segments, and matching is case sensitive.
If a matched path points to an object, the entire subtree under that object is included. When this field is absent or an empty list, path filtering is inactive and existing excludedMixinKeys behavior applies.
includedMixinPaths and excludedMixinKeys are mutually exclusive when includedMixinPaths is non-empty. Malformed glob patterns are rejected with a validation error on configuration writes.
Configuration updated
No content
Request was syntactically incorrect. Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match scopes required by the endpoint.
Resource has not been found.
Upstream dependency was unavailable. Details will be provided in the response payload.
PUT /indexing/{tenant}/configurations/{provider} HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 186
{
"active": true,
"searchKey": "84dc4886f81f805c42bdd89d64de751a",
"applicationId": "8AP2HABA2I",
"indexName": "exampleTenant",
"writeKey": "51ebe89215dddcf85e5dacd5643d17e7",
"provider": "ALGOLIA"
}No content
Deletes the configuration based on the provider name.
- : Needed to manage an index provider configuration
The tenant that the caller is acting upon.
Please note that this value is always lowercase.
^[a-z][a-z0-9]+$Provider name. Supported values: ALGOLIA, BATTERY_INCLUDED
Configuration deleted
No content
Given request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match scopes required by the endpoint.
Resource has not been found.
DELETE /indexing/{tenant}/configurations/{provider} HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
No content
Last updated
Was this helpful?

