- Welcome 👋
- Get Started
- Create Your First App
- Authorization
- Webhooks
- Conditional Webhooks
- Security Considerations
- Multi-Language Support
- Responses
- Pagination
- Rate Limiting
- Versioning
- Change Log
- Support
- APIs
- Orders
- Order Status
- Order Histories
- Order Tags
- Order Invoice
- Order Reservations
- Order Items
- Products
- Product Options
- Product Quantity
- Product Variants
- Product Tags
- Product Images
- Product Option Values
- Abandoned Carts
- Customer Groups
- Customers
- Digitals Product
- Categories
- Exports
- Shipments
- Shipping Companies
- Shipping Zones
- Shipping Rules
- Countries
- Product Option Templates
- Taxes
- Coupons
- Affiliates
- Order Assignment
- Special Offers
- Transactions
- Payments
- Settlements
- Settings
- Merchant
- Brands
- Reviews
- Branches
- Currencies
- SEO
- Cities
- DNS Records
- Languages
- Employees
- Advertisements
- Webhooks
- Custom URLs
- Loyalty Points
- Webhooks - Store Events
Update Language
Production
Production
PUT
https://api.salla.dev/admin/v2/languages/{locale}
Languages
Last modified:2025-02-03 12:48:42
locale
as the path parameter.Scopes
metadata.read_write
- Metadata Read & WriteRequest
Authorization
Add the parameter
Authorization
to Headers,whose value is to concatenate the Token after the Bearer.Example:
Authorization: Bearer ********************
Path Params
locale
stringÂ
required
Body Params application/json
status
booleanÂ
optional
RequiredIf
the variable sort_order
is not sentsort_order
integerÂ
optional
RequiredIf
the variable status
is not sent in this requestExample
{
"status": true,
"sort_order": 1
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://api.salla.dev/admin/v2/languages/' \
--header 'Content-Type: application/json' \
--data-raw '{
"status": true,
"sort_order": 1
}'
Responses
🟢200Success
application/json
Body
status
numberÂ
optional
success
booleanÂ
optional
data
array[object (Languages) {8}]Â
optional
id
numberÂ
required
Example:
1
name
stringÂ
required
Example:
العربية
status
enum<string>Â
required
enabled
or disabled
Allowed values:
enableddisabled
Example:
enabled
rtl
booleanÂ
required
Default:
true
flag
stringÂ
required
Example:
https://i.ibb.co/jyqRQfQ/avatar-male.webp
iso_code
stringÂ
required
Example:
ar
country_code
stringÂ
required
Example:
sa
sort_order
stringÂ
required
Example:
2
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
}
]
}
🟠404Not Found
🟠422Validation Error
🟠401Unauthorized
Modified at 2025-02-03 12:48:42