Skip to content

Set the preferred language

PUT
/v1/auth/me/locale
curl --request PUT \
--url https://api.emite.cr/v1/auth/me/locale \
--header 'Content-Type: application/json' \
--data '{ "locale": "es" }'

Stores es or en as the preferred UI language of the signed-in person, kept across devices; the emails sent to them use it too. Requires a person’s session: an API key answers 401 UNAUTHENTICATED.

Media typeapplication/json
object
locale
required

Preferred language of the account: es (Spanish) or en (English). The emails sent to the person use it, and so does a PDF downloaded without ?locale=.

string
Allowed values: es en
Example
es