Set your preferred language

posthttps://api.expiryedge.com/v1/updateUserLocale
bearer token (Firebase ID token or session JWT); any role60/minJede Methode
Anfrage
curl -X POST 'https://api.expiryedge.com/v1/updateUserLocale' \
  -H "Authorization: Bearer $EXPIRYEDGE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "locale": "es"
}'
Antwort
{
  "success": true,
  "locale": "es",
  "message": "Language preference updated to es"
}

Saves preferred_locale on the caller's user profile (used for emails and the UI).

Body-Parameter

application/json
  • localestringerforderlich
    Erlaubtenesdefrvicnar

Rückgabe

200
Locale saved.
  • successboolean
  • localestring
  • messagestring

Fehler

400
The request is missing required fields or contains invalid values.
401
Missing, expired or invalid bearer token.
429
Too many requests for this endpoint from your IP. Wait Retry-After seconds.
500
Unexpected server error. Retry later; quote requestId to support.