Update tenant i18n preferences
PUT
/api/i18n/preferences
const url = 'https://api.ultimateteam.ai/api/i18n/preferences';const options = { method: 'PUT', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"billing_country":"example","currency":"example","locale":"example","timezone":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.ultimateteam.ai/api/i18n/preferences \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "billing_country": "example", "currency": "example", "locale": "example", "timezone": "example" }'Update the tenant’s locale, currency, timezone, and billing country. Emits tenant.settings_updated for downstream listeners.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
PreferencesRequest
Request body for PUT /api/i18n/preferences.
Attributes: locale: BCP-47 locale code (must be in SUPPORTED_LOCALES). currency: ISO 4217 currency code (must be in SUPPORTED_CURRENCIES). timezone: IANA timezone identifier (validated via ZoneInfo). billing_country: 2-letter ISO country code.
object
billing_country
required
Billing Country
string
currency
required
Currency
string
locale
required
Locale
string
timezone
required
Timezone
string
Examplegenerated
{ "billing_country": "example", "currency": "example", "locale": "example", "timezone": "example"}Responses
Section titled “ Responses ”Successful Response
Media typeapplication/json
PreferencesResponse
Response shape for PUT /api/i18n/preferences.
object
billing_country
required
Billing Country
string
currency
required
Currency
string
locale
required
Locale
string
timezone
required
Timezone
string
Examplegenerated
{ "billing_country": "example", "currency": "example", "locale": "example", "timezone": "example"}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}