Switch the logged-in user's UI language
DB is the sole authority; a failed session-cookie/retidal_locale cookie refresh after a successful DB write is NOT reported as an error.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
locale
required
Must be an enabled locale
string
Examplegenerated
{ "locale": "example"}Responses
Section titled “Responses”Switched
Media typeapplication/json
object
ok
boolean
locale
string
Unsupported locale
Media typeapplication/json
object
error
required
Human-readable error message.
string
message
string
Examplegenerated
{ "error": "example", "message": "example"}Not logged in
Media typeapplication/json
object
error
required
Human-readable error message.
string
message
string
Examplegenerated
{ "error": "example", "message": "example"}Session secret missing or DB write failed
Media typeapplication/json
object
error
required
Human-readable error message.
string
message
string
Examplegenerated
{ "error": "example", "message": "example"}