Skip to content

Update tenant i18n preferences

PUT
/api/i18n/preferences
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.

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
>= 2 characters <= 2 characters
currency
required
Currency
string
>= 3 characters <= 3 characters
locale
required
Locale
string
>= 2 characters <= 10 characters
timezone
required
Timezone
string
>= 1 characters <= 64 characters
Examplegenerated
{
"billing_country": "example",
"currency": "example",
"locale": "example",
"timezone": "example"
}

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>
ValidationError
object
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"
}
]
}