Light Mode
Update Language
PUT
/languages/{locale}Last modified: 24 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: 24 days ago