Material Translations
This api is used to sync translations for material with WorkorderApp. Each material translation record contains the following data:
reference_key
Unique code (material code in OutSmart)
Varchar (30)
original
Original name of the material
Text (max length: 64kB)
translation
Translated description for the material
Text (max length: 64kB)
language
Lowercase code which represents the language of the translation
Varchar (5)
English
en
German
de
Dutch
nl
Portugese
pt
French
fr
Spanish
es
Portugese - Brasil
pt-br
{{client_token}}{{software_token}}Response_200
GET /material_translations/ HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Response_200
{
"code": 200,
"messages": [],
"response": [
{
"id": "3",
"reference_key": "NL2002",
"original": "LED Lamp",
"translation": "LED Light",
"language": "EN"
},
{
"id": "4",
"reference_key": "NL2004",
"original": "Deurbel",
"translation": "Doorbell",
"language": "EN"
}
]
}This api is used to sync translations for material with WorkorderApp. Each material translation record can contain the following data:
reference_key
Unique code (material code in OutSmart)
Y
Varchar (30)
original
Original name of the material
Y
Text (max length: 64kB)
translation
Translated description for the material
Y
Text (max length: 64kB)
language
Lowercase code which represents the language of the translation
Y
Varchar (5)
English
en
German
de
Dutch
nl
Portugese
pt
French
fr
Spanish
es
Portugese - Brasil
pt-br
{{client_token}}{{software_token}}Response_200
POST /material_translations/ HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Response_200
{
"code": 200,
"messages": [],
"response": 4
}This api is used to delete translations for materials within OutSmart.
Deleting translations can also be done by providing the material code and language code.
Records can be deleted by providing a list of ids which can be retrieved through "GET material_translations".
ids
A list of ids to be deleted
Y
array
Supported from OutSmart Backoffice v6.0.0
{{client_token}}{{software_token}}Response_200
DELETE /material_translations/ HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Response_200
{
"code": 200,
"messages": [
"Rows deleted: 3"
],
"response": null
}Last updated
Was this helpful?
