Translations
Translations use language-code maps, enabling objects to be created, retrieved, and updated in one or multiple languages.
How to create a localized object in a specific language
curl -i -X POST \
'https://api.emporix.io/unit-handling/{tenant}/units' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Language: de' \
-H 'Content-Type: application/json' \
-d '{
"code": "kg",
"name": "kilogram",
"type": "mass",
"baseUnit": true,
"symbol": "kg",
"factor": 1
}'How to create a localized object in multiple languages
How to retrieve a localized object in a specific language
How to retrieve a localized object in all available languages
How to add localized fields to an existing object
Last updated
Was this helpful?

