Update Language
PUT
/languages/{locale}This endpoint allows you to update a specific language by passing the locale
as the path parameter.
Request
Language to be updated. List of languages from here
Whether to disable or enable a specific language. RequiredIf
the variable sort_order
is not sent
The order of which a language will appear. RequiredIf
the variable status
is not sent in this request
{
"status": true,
"sort_order": 1
}
Request samples
Responses
Response status code, a numeric or alphanumeric identifier used to convey the outcome or status of a request, operation, or transaction in various systems and applications, typically indicating whether the action was successful, encountered an error, or resulted in a specific condition.
Response flag, boolean indicator used to signal a particular condition or state in the response of a system or application, often representing the presence or absence of certain conditions or outcomes.
A unique alphanumeric code or identifier assigned to a specific Language.
Language Name
Language Status. Either enabled
or disabled
Right-To-Left Supportability
Icon/Flag of the Language
ISO Code of the Language
Country Code of the Language
Display order of the Language
{
"status": 200,
"success": true,
"data": [
{
"id": 13,
"name": "franรงais",
"status": "enabled",
"rtl": false,
"flag": "https://assets.salla.sa/images/flags/fr.svg",
"iso_code": "fr",
"country_code": "fr",
"sort_order": 1
}
]
}