Light Mode
Update Language
PUT
/languages/{locale}Last modified:Â 16 days ago
This endpoint allows you to update a specific language by passing the locale
as the path parameter.
Request
Path Params
locale
stringÂ
required
Language to be updated. List of languages from here
Body Params application/json
status
booleanÂ
optional
Whether to disable or enable a specific language. RequiredIf
the variable sort_order
is not sent
sort_order
integerÂ
optional
The order of which a language will appear. RequiredIf
the variable status
is not sent in this request
Example
{
"status": true,
"sort_order": 1
}
Request samples
Responses
Success(200)
Not Found(404)
Validation Error(422)
HTTP Code:Â 200
Content Type :Â JSONapplication/json
Data Schema
No schema defined
Example
{
"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
}
]
}
Last modified: 16 days ago