Update a language by locale
PATCH/languages/:locale
Update a language by locale
Request
Path Parameters
Language locale of the object
- application/json
Body
required
language
object
Set default to True to set a default language, to set another language to default, set default to True on the target language and the current default will become disabled
True when the language is enabled, False when it is not
The locale string for the language, current options are- en, fr, es, de, fr-CA
Responses
- 200
- 400
- 500
Expected response to a valid request
- application/json
- Schema
- Example (from schema)
Schema
language
object
Set default to True to set a default language, to set another language to default, set default to True on the target language and the current default will become disabled
True when the language is enabled, False when it is not
The locale string for the language, current options are- en, fr, es, de, fr-CA
{
"language": {
"default": true,
"enabled": true,
"locale": "es"
}
}
Bad Request - unable to complete.
- application/json
- Schema
- Example (from schema)
Schema
- InvalidJson
- ValidationErrors
oneOf
{}
Internal Server Error - returned on unhandled exceptions.
- application/json
- Schema
- Example (from schema)
Schema
A message describing the error
{
"error": "Sorry something went wrong"
}