Set the preferred language
PUT
/v1/auth/me/locale
const url = 'https://api.emite.cr/v1/auth/me/locale';const options = { method: 'PUT', headers: {'Content-Type': 'application/json'}, body: '{"locale":"es"}'};
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.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.
Request Bodyrequired
Section titled “Request Bodyrequired”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
Example
es