Activate/Deactivate Language
POST {{baseUrl}}/languages
This endpoint allows you to activate or deactivate a specific language using the locales
object in the body request.
Request Body
{"locales"=>[{"iso_code"=>"fr", "sort_order"=>"1"}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"status":200,"success":true,"data":[{"id":1,"name":"العربية","status":"enabled","rtl":true,"flag":"https://i.ibb.co/jyqRQfQ/avatar-male.webp","iso_code":"ar","country_code":"sa"}]}