DefaultLocale API

XO features (recommendation, product tagging) need a default locale to work. This default locale is set by tenant/environment.

Set the default locale

POST https://items.attraqt.io/locale/{locale}

Query Parameters

NameTypeDescription

tenant*

string

environment*

string

Headers

NameTypeDescription

Authentication*

string

Authentication bearer token.

{}

Locale format is based on the Java locale format: <language_code>_<country_code> The language code is based on the ISO 639-1 and the country code is defined by ISO 3166

Get the default locale

GET https://items.attraqt.io/locale

This endpoint allows you to get the default locale.

Query Parameters

NameTypeDescription

tenant*

string

environment*

string

Headers

NameTypeDescription

Authentication*

string

Authentication token.

{
    "tenant": {tenant},
    "environment": {environment}
    "locale": {locale}
}

Delete the default locale

DELETE https://items.attraqt.io/locale

Query Parameters

NameTypeDescription

tenant*

string

environment*

string

Headers

NameTypeDescription

Authentication*

string

Authentication token

Last updated